Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-23-2023, 05:32 AM
RRB's Avatar
RRB RRB is offline Need to automatically apply style within parentheses. Windows 11 Need to automatically apply style within parentheses. Office 2021
Susan Flamingo
Need to automatically apply style within parentheses.
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 297
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply table style shahid.majeed Word Tables 0 10-02-2019 01:25 AM
Macro to apply a style between quotations WVA Word VBA 6 07-30-2019 11:13 AM
My style keeps changing, can't get saved style to apply Meenie50 Word 7 07-20-2017 03:47 PM
Automatically applying character style while using fast style feature Didier Super Word 1 04-10-2017 05:10 AM
Need to automatically apply style within parentheses. Can I apply a style to an image? humbleosity Word 1 01-14-2014 09:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft