DataHugger
Programmer
Greetings,
I am attempting to automate the pasting of excel charts from excel into a word document.
This is the part of the code that is giving me the problems:
after the macro execute appWrd.Selection.PasteAndFormat
I get a message that tells me that the command is not found.
What am I doing wrong?
-DaTaHuGGeR
I am attempting to automate the pasting of excel charts from excel into a word document.
This is the part of the code that is giving me the problems:
Code:
'Copy the data from Thisworkbook
Chart.Copy
'Paste into Word
appWrd.Selection.Goto What:=wdGoToBookmark, Name:=BookMarkChart
appWrd.Selection.PasteAndFormat Type:=wdChartLinked
after the macro execute appWrd.Selection.PasteAndFormat
I get a message that tells me that the command is not found.
What am I doing wrong?
-DaTaHuGGeR