View Single Post
 
Old 04-23-2011, 10:32 PM
qcom qcom is offline Mac OS X Microsoft Office 2008 for Mac
Novice
 
Join Date: Apr 2011
Posts: 3
qcom is on a distinguished road
Default Macro to find text in between two characters and then format selected text?

I'm completely new to macros in MS Word, but not entirely new to programming.

I'm looking to select all of the words in my document that begin with a "7" and end with a "pm". They have varying stuff in between such as "7:47pm" and so on.

How would I go about making such a macro in VBA?

Once selected, I would like to change the font size down to 7.

I would imagine this would be super simple macro for those experienced, but I really have no idea where to start.

Any suggestions are appreciated.

Thanks!
Reply With Quote