NormanMitchell
asked on
Paste Excel Table to Word bookmark
I am trying to automate (vie VBA) copying some Excel tables into a Word document at specific bookmarked locations. The following is a code snippet:
'this should copy the Excel table to the clipboard
Range(strRangeName).Copy
'this should paste the clipboard into the word document
wrdrngBookMark.PasteAndFor mat Type:=wdFormatOriginalForm atting
I am successfully copying charts across with the folowing:
ActiveChart.ChartArea.Copy
wrdrngBookMark.PasteAndFor mat Type:=wdChartPicture
Please what am I doing wrong with the tables??
'this should copy the Excel table to the clipboard
Range(strRangeName).Copy
'this should paste the clipboard into the word document
wrdrngBookMark.PasteAndFor
I am successfully copying charts across with the folowing:
ActiveChart.ChartArea.Copy
wrdrngBookMark.PasteAndFor
Please what am I doing wrong with the tables??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm not sure but it could have something to do with
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6452bd86-acdb-45f4-ae65-3329ea5d38d7
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/6452bd86-acdb-45f4-ae65-3329ea5d38d7
ASKER
The solution did not work consistently
ASKER
Any ideas why PasteExcelTable is unreliable?