![]() |
|
#5
|
|||
|
|||
|
Thanks Charles.
It may be time to move this topic over to the Word VBA section or I can start a new post there as well. I'm learning and experimenting, and am trying to figure out how can I modify both fieldcodes and Building Blocks in VBA to accept variables and/or other field codes. Example would be. I have Building block that is an OLE link to a table in Excel. That building block value in debug looks something like this: Code:
* LINK Excel.SheetMacroEnabled.12 "C:\\NewPath\NewFile.xlsm" "Receivable Charts!Charts_Receivable_ARTrendPrior" \a \p *** But I want the user to be able to replace the filepath/filename of the building block, and hopefully without being asked to resave the building blocks template file. My thought was to use a FieldCode(s) of the filepath and filename in the Building Block. And then a macro to update those 2 field codes, and the building blocks would then not need to changed. But I'm not sure if that is the best approach. I'm also struggling similarly to replace a fieldcode value with a new value from a variable. I'm gonna keep playing. But greatly for any help, and I'll post some sample code shortly. EDIT: Think I got the updating/modifying of Field Code with a variable figured out. Now, I need to research how to combined field codes together in side of each other. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How do I edit AutoText?
|
TommyVincent | Outlook | 2 | 08-01-2014 08:20 AM |
Autotext
|
jafrapatty | Word | 2 | 05-09-2014 04:30 AM |
Autotext within Fields
|
gotmatt | Word | 2 | 06-29-2011 06:05 PM |
Copying autotext
|
jafrapatty | Office | 3 | 01-30-2011 01:11 AM |
| AutoText Updates | Ludovico | Word | 0 | 07-11-2010 06:10 AM |