Forum Discussion
Mail Merge with HTML
Hi
I have a mail merge that contains some HTML.
Can anyone please advise how I replace the HTML with correct formatting?
I have a sample file https://thedeanesessexschuk-my.sharepoint.com/:w:/g/personal/dmckeown_thedeanes_essex_sch_uk/ETjWXiql8X1GlYYBsNcHFLkB1dOkyt-344BlrnWKwo3MRw?e=lXcgk9.
Many thanks
Desi
5 Replies
DesiMcK Is the Sample file that you provided the result of the mail merge, or is it intended to be the data source
If you do not need the underlining as shown for Band B below, you could obtain that result by first using a couple of ordinary Find and Replace routines, one to replace
</p>
with
^p
and the other to replace
</li>
with
^p
and (Note, there is a splace after the "</li> "
Then use a Wildcard replace to replace
\<[a-z\/]{1,}\>
with nothing
If you want the underlining, it would require the use of a macro and a more complex replace routine, but it might be simpler just to perform the replaces detailed above and then manually select the text taht is to be underlined and apply the underlining