View Single Post
 
Old 05-09-2019, 11:40 AM
Steve Kunkel Steve Kunkel is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: May 2019
Location: Seattle area
Posts: 81
Steve Kunkel is on a distinguished road
Default Can I find-and-replace text in all Quickparts at once?

Hi Folks,
I have a nifty VBA-enabled Word docx that I use for writing reports at work. Upon opening it, a dialog prompts me for information about the person I'm writing a report about, then replaces "[n]" with the person's name, and other target strings ([e],[m], etc) get changed to male or female pronouns. Then the report gets saved as the person's name.

I'd like to start using Quickparts in my report boilerplate tool. An example Quickpart I might have is "[n] was a pleasure to work with." So what I want is that when that VBA code is run, I'd like it to change all of the "[n]" and other target strings that are in all of the Quickparts too. All in one fell swoop, so to speak.

Does that make sense?

EDIT: Found this
https://www.thedoctools.com/word-mac...otext-via-vba/
Might work.
Reply With Quote