Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
JFamilo,
The bookmarks aren't linked to XL. All my code does is to fill in the bookmarks for you from XL If you add, remove or rename any bookmarks, you'll have to add code to fill them. You could set up all the possible bookmarks on the Word Doc. and then use If statements to either put in whatever you want or, if you don't want to use them in some versions, put in "" or If condition Then ignore those "Result =" lines The other way around the problem would be to have several versions of your Word Doc and open the appropriate one. You would then need different code for each version. Henry "JFamilo" wrote in message ... Thank you! This is so much help. I can't wait to try it. Just one question though... will this link my bookmarks to my excel file so that if the excel file is updated then the bookmarks in the word file are updated too? I think I have to change the statement: Code: -------------------- appWD.ActiveDocument.FormFields("Surname2").Result = Worksheets(gCounter).Cells(gMyRow, 4).Value -------------------- But I don't know what I need to change it to to do the links. Thanks. -- JFamilo ------------------------------------------------------------------------ JFamilo's Profile: http://www.excelforum.com/member.php...o&userid=17276 View this thread: http://www.excelforum.com/showthread...hreadid=388545 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel and Word Bookmarks | Excel Programming | |||
exporting Excel data to Word using Bookmarks | Excel Programming | |||
VBA, Bookmarks, Word and Excel... help please! | Excel Programming | |||
Checking for bookmarks in Word document | Excel Programming | |||
Using Word Bookmarks to read Text | Excel Programming |