New1992
06-08-2016, 05:43 PM
I've written some code that uses a user form to get user information and creates a reply email (to the one highlighted in outlook). To do this I used the item.Reply function from the highlighted email. I then put the data from the user form into a new email with the Reply.HTML at the end. I am looking for a way to delete the TO, CC, BCC, and Subjects from the new email.
I have the code written such that those sections are taken from the hilighted email and converted to a string. When I try to remove that string from the new email it doesn't work. I think the code is reading the <email> as HTML formatting and removing it from the text. Does anyone have any ideas on how to avoid this?
Simply put: replace text in an HTML email draft that is similar to "John Smith <emaill>"
I have the code written such that those sections are taken from the hilighted email and converted to a string. When I try to remove that string from the new email it doesn't work. I think the code is reading the <email> as HTML formatting and removing it from the text. Does anyone have any ideas on how to avoid this?
Simply put: replace text in an HTML email draft that is similar to "John Smith <emaill>"