Forum Discussion

DesiMcK's avatar
DesiMcK
Copper Contributor
Dec 05, 2022

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

    • DesiMcK's avatar
      DesiMcK
      Copper Contributor
      Thanks for the reply - is it possible to replace <li> with bullet points?


      Thanks

      Desi
      • DesiMcK I am do not know how big the document is, but if it's not too big, it would just be simpler to select the paragraphs and manually apply bulleting (rather than the underlining.