View Single Post
 
Old 12-11-2012, 12:12 PM
dmarie123 dmarie123 is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Dec 2012
Location: New Yuk
Posts: 23
dmarie123 is on a distinguished road
Default Replace text with Quick Part using VBA

I'm pretty new to VBA so please bear with me!

I'm attempting to streamline a Word document that I use over and over and over. I've written a macro to fix the grammatical errors that are always present but I need to replace a couple separate instances of text with a person's name throughout the document. For example, I need to replace both "your name" and "student" with "Ann Robertson". The actual name like "Ann Robertson" is already in the document inside a quick part named "Person". I'm using quick parts because occasionally the name will change, e.g. from Ann Robertson" to "Ann M. Robertson". Is it possible to do a sort of find and replace w/ VBA? I've found the "insert quickpart" code but I'm too new to know what to do with it.

Thank you all in advance for your time. The knowledge I've gained on this forum is great!
Reply With Quote