Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2015, 07:36 AM
ptmuldoon ptmuldoon is offline Copying Raw Field Codes Windows 7 64bit Copying Raw Field Codes Office 2013
Advanced Beginner
Copying Raw Field Codes
 
Join Date: Sep 2014
Posts: 93
ptmuldoon is on a distinguished road
Default Copying Raw Field Codes

I found this old post/macro Here, but it both gives an error and not sure if will do what I'm trying.

Is there any way to do a global search and replace of text to a Field Code? I have about 70+ tables in Word that are OLE links to an excel file.

An example of one looks like below
Code:
{ LINK  Excel.SheetMacroEnabled.12 "C:\\Data\\Test WPS with Exam Highlights.xlsm" "Cover Charts!Charts_Cover_Main" \p }
and I want to replace both the File Path and File Name with Field Codes like below


Code:
{LINK Excel.SheetMacroEnabled.12 "{DOCPROPERTY  WPFilePath}{DOCPROPERTY  WPFileName}" "Cover Charts!Charts_Cover_Main" \p }
I tried using chr(19) and chr(21) in a replace, but still no luck yet.

Last edited by ptmuldoon; 01-03-2015 at 08:45 AM.
Reply With Quote
 

Thread Tools
Display Modes


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:17 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