Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-09-2019, 11:40 AM
Steve Kunkel Steve Kunkel is offline Can I find-and-replace text in all Quickparts at once? Windows 10 Can I find-and-replace text in all Quickparts at once? Office 2016
Advanced Beginner
Can I find-and-replace text in all Quickparts at once?
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I find-and-replace text in all Quickparts at once? Find and replace a text with a field eduzs Word VBA 6 02-23-2018 05:19 PM
Can I find-and-replace text in all Quickparts at once? How To find Text and replace with equation maamiradina Word 2 12-17-2016 11:08 PM
Can I find-and-replace text in all Quickparts at once? Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM
Can I find-and-replace text in all Quickparts at once? Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft