View Single Post
 
Old 03-23-2023, 05:32 AM
RRB's Avatar
RRB RRB is offline Windows 11 Office 2021
Susan Flamingo
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default Need to automatically apply style within parentheses.

Hi friends!

It has been so many years since I last programmed with VBA I'm going to take the audacious move to ask if somebody can help me write the following macro:

I have text within parentheses and when I type the close parentheses "(" together with the alt key I want Word to select all the text back to the opening parentheses ")" and format it with style called "styMyStyle". And then the cursor moves back to where it originally was, after the closing parentheses.

Thanks in advance very much!

Susan

(mods: I posted this in the VBA section but have not received any reply so I have moved it here. I don't know how to delete the post there. Plz let it stay here. Thank You)
Reply With Quote