View Single Post
 
Old 03-16-2024, 11:59 PM
RRB's Avatar
RRB RRB is offline Windows 11 Office 2021
Susan Flamingo
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 297
RRB is on a distinguished road
Default Strugling with a macro

Hi friends! Hope you are all well!

I am struggling to write a macro and have not been successful

I have certain paragraphs that follow the same syntax. At their beginning are codes for the pagination program that are in curly brackets like {020).

Then there is a sentence that ends with a period. Then the rest of the paragraph. The paragraph has to be formatted with the style MyParStyle. The pagination codes have to be formatted with MyPgSTyle (a character style) and the first sentence up to and including the period has to be formatted with a char style "MySentStyle".

Assuming we are presently at the end of the paragraph how would a macro handle this?

All assistance is sincerely appreciated!

Thank you and have a good day!

Susan Flamingo
Reply With Quote