I have an open Word template containing multiple bookmarks, I would like to add 2 specific bookmarks to an Excel spreadsheet when the spreadsheet is opened, the bookmarks names are “Text6” and “Text9”, the spreadsheet is launched from a button in the word template, with the following code:-
Sub OpenSheet()
ActiveDocument.FollowHyperlink _
Address:="C:\Common\Structure\Project\Working Area\Spreadsheet 2.0.xls", _
NewWindow:=True, AddHistory:=True
End Sub
I am using Word & Excel 2003, any suggestions would be appreciated as all the examples I can find open a pre-saved word document before copying bookmarks, will I have to save the Word doc to a temp location prior to locating and copying the bookmarks??
Thanks in anticipation.
Sub OpenSheet()
ActiveDocument.FollowHyperlink _
Address:="C:\Common\Structure\Project\Working Area\Spreadsheet 2.0.xls", _
NewWindow:=True, AddHistory:=True
End Sub
I am using Word & Excel 2003, any suggestions would be appreciated as all the examples I can find open a pre-saved word document before copying bookmarks, will I have to save the Word doc to a temp location prior to locating and copying the bookmarks??
Thanks in anticipation.