View Single Post
 
Old 03-22-2023, 08:19 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: 297
RRB is on a distinguished road
Default need help with short macro

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 Word selects all the text back to the opening parentheses ")" and formats it with a style called "styMystyle". And then the cursor moves back to where it originally was after the closing parentheses.

Thanks in advance very much!

Susan

[Moderator's note:Thread closed at Susan's request. Reposted by Susan in regular Word forum since no answers here.]

Last edited by Charles Kenyon; 03-24-2023 at 12:29 PM.