How to: Word Macros with User Input?
June 10, 2010 3:37 PM Subscribe
WordMacroFilter: I'm trying to set up a Word Macro using find and replace but that waits for user input...
posted by Zinger to computers & internet (4 answers total) 1 user marked this as a favorite
I want to set up some Word Macros (Word 2007 and 2010) that make use of the find and replace, but that don't do a 'blind' replace all.
So for example, I want to be able to have a macro that does a find and replace for two spaces and replaces it with one... but I don't want to do a replace all, because sometimes the documents in question have things that are positioned using spaces rather than tables. (yeah, yeah, I know, that's another issue.) I want the option to be able to say yay or nay to each replace.
If I record a macro using the find and replace set up, it just quits after one find and replace. Hitting the macro button multiple times really isn't viable.
How do I set this up? VB code examples would be great. I'm thinking Loop? I don't know...
(I have a number of such find and replace requirements, so I'm looking to save time on the set up of these via macros).