Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-09-2019, 08:00 PM
Guessed's Avatar
Guessed Guessed 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
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Steve
I don't think editing the Building Blocks in anticipation of using them in the current doc is a good idea. For starters, the template should be 'document agnostic' because I might have multiple docs open at the same time and if I had hard coded the [n], [e] and [m] fields in the template, it might only be useable in one of those documents until the macro is used to reset them to suit another document.

Investigate linked content controls and then put those into the template building blocks. As an introduction to this, go to Insert > Quick Parts > Document Property and pick a couple of those entries. Now embed those into some random bits of text (such as a couple of your building blocks. Notice how if you place two instances of the same linked CC into a doc, you can edit either one and the other one automatically updates. Now go to a second document and paste that same content into that document, and edit the CC there to see that the same CC can show different values in different docs - because the linked metadata can be different in both.

Including linked CCs in your quick part building blocks allows you to set the value of the document property so that any subsequent content pasted in which includes a CC linked to the same property will automatically show the right info.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
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 10:31 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