I am copying a table to a word document bookmark. The bookmark includes a "placeholder table". The code I'm currently using is
'set word application dimensions
Dim wdApp As Object
Dim wdDoc As Object
Set wdApp = CreateObject("word.application")
'Open the relevent Document
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Add(Template:="\\svr\documents\Word\Document Template.dotx", NewTemplate:=False, DocumentType:=0)
' Create reference to range and copy
Dim ExcListObjQ As Range
Set ExcListObjQ = Sheets("Quote Tables").Range("C4.I24")
ExcListObjISRQ.Copy
'Paste Object to Location
wdDoc.Bookmarks("RNBMQuoteTableW").Range.PasteExcelTable _
LinkedToExcel:=False, _
WordFormatting:=False, _
RTF:=True
I would like to retain the bookmark RNBMQuoteTableW for use at a later date to update this table. I don't want to link the table as there is large number of charts and tables within the word document and linking has a performance impact.
To clarify the table resides inside the bookmark.
The start location of the bookmark may change during the life of the word document, but could be used when running the sub.