Help with a Word Macro to remove certain leading and\or ending characters

Copper Contributor

I wonder if someone could help me create a macro that will remove certain leading and\or ending characters. For example, in the following line of text (which has no ^p line breaks), I want to remove the “; “ (semi-colon and space) (from the beginning of the line and the “;” from the end or the line (without removing any of the “; “ characters in the middle of the line between the other words.


; and; are; at; Browse; conversations; groups; happen; interest; join; most; of; ones; product; that; the; through; where; you;


Make sense? Thank you so much!

0 Replies