Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-11-2012, 12:12 PM
dmarie123 dmarie123 is offline Replace text with Quick Part using VBA Windows 7 64bit Replace text with Quick Part using VBA Office 2007
Novice
Replace text with Quick Part using VBA
 
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
 

Tags
content control, vba in microsoft word, word 2007



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace text with Quick Part using VBA Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
How to Rename a Quick Part sleake Word 14 10-14-2013 09:21 AM
quick replace, sort, change columns userman Excel 1 05-01-2012 06:24 AM
Quick change for all text boxes in a presentation tmlander PowerPoint 1 03-09-2012 01:20 AM
Date display in Mod quick part header Jrul John Word 1 08-02-2010 12:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:24 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