Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-03-2015, 01:13 PM
jjfreedman jjfreedman is offline Copying Raw Field Codes Windows 7 64bit Copying Raw Field Codes Office 2010 32bit
Advanced Beginner
 
Join Date: May 2012
Location: https://jay-freedman.info
Posts: 39
jjfreedman is on a distinguished road
Default

There's no way to put a field construction into the Replace With box of the Replace dialog, but there is a way to do what you want.

Somewhere in the document (or in another document in Word), insert the two fields {DOCPROPERTY WPFilePath}{DOCPROPERTY WPFileName} and then cut them to the clipboard.

Make sure that field codes are visible in your document (press Alt+F9 if needed). Open the Replace dialog and type the existing path & filename (without the quote marks) in the Find What box. In the Replace With box, enter the code ^c which represents the clipboard contents. Then click Replace All.

For future reference if you don't remember the ^c code: Open the Replace dialog, click in the Replace With box, click the More button, and then click the Special button at the bottom. In the popup menu, click the "Clipboard Contents" item to insert the corresponding code in the Replace With box.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Raw Field Codes How to hide field codes from others? lucky16 Word VBA 2 10-24-2014 03:52 AM
VBA script to update field codes? Calab Word VBA 1 04-07-2014 09:27 PM
Formula Field using Field Codes hunter2193 Word 3 04-05-2013 04:58 AM
Copying Raw Field Codes Word Equation field codes mkarthic Word 1 12-02-2011 02:09 AM
Copying Raw Field Codes confusion with merge and field codes BluRay Mail Merge 5 03-29-2011 01:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:58 PM.


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