I'm OK with Excel VBA, but haven't tried Word VBA recently. Using Office 2010 Pro under Win7 x64.
I want to set up a macro to search a document for a specific (constant) word. I know how to do this manually and I know how to link a macro to a button on the Quick Access toolbar.
My problem is that when I try recording a Macro of the find process - even when using only keyboard inputs due to mouse limitations in Word VBA recording - I get a macro with no code in it.
I have enabled all macros and set Developer Macro settings to trust access to the VBA project object model, but that hasn't helped.
Two questions:
1. How can I record a Find macro that works?
2. What is the Word VBA for finding a string in the whole document?
Thanks for any help.
I want to set up a macro to search a document for a specific (constant) word. I know how to do this manually and I know how to link a macro to a button on the Quick Access toolbar.
My problem is that when I try recording a Macro of the find process - even when using only keyboard inputs due to mouse limitations in Word VBA recording - I get a macro with no code in it.
I have enabled all macros and set Developer Macro settings to trust access to the VBA project object model, but that hasn't helped.
Two questions:
1. How can I record a Find macro that works?
2. What is the Word VBA for finding a string in the whole document?
Thanks for any help.