08-16-2017 01:12 PM - edited 08-16-2017 01:13 PM
I have a report with multiple sheets; each sheet has one plot. I would like to export each plot of these into different specific sections (or pages) of a Word document; for example plotA to page 2, plotB to page 4, etc.
I have had a look into the Wrd_OLE.vbs of Diadem example. The script uses bookmarks to export plots. However my document does not have any bookmark. Therefore I have to export basing on specific page numbers.
Please provide me suggestion how to access to page.
Thank you.
Solved! Go to Solution.
08-17-2017 09:19 AM
I have figured out the solution:
Const wdGoToPage = &H1 Const wdGoToAbsolute = &H1 Const wdGoToLine = &H3 Const wdGoToRelative = &H2 Call oWord.Selection.GoTo(wdGoToPage, wdGoToAbsolute, PageNumber) 'Jump to page Call oWord.Selection.GoTo(wdGoToLine, wdGoToRelative, NumofLines) 'Move forward number of lines Call oWord.Selection.PasteSpecial( , , wdInLine, , wdPasteMetafilePicture)