S
sajberjens
I've written a bit of code that pops a chart from Excel into some
insertion point as follows:
With WordApp
.Activate
.ActiveDocument.Bookmarks(foo).Select
.Selection.PasteAndFormat (wdChartPicture)
End With
This works admirably well as long as it's executed from a module in a
..xls file but as soon as I put the code into a .xla I get
Compile error: variable not defined
with the debugger pointing to wdChartPicture...
I'm stumped -- any clues?
Thanks!
Jens
insertion point as follows:
With WordApp
.Activate
.ActiveDocument.Bookmarks(foo).Select
.Selection.PasteAndFormat (wdChartPicture)
End With
This works admirably well as long as it's executed from a module in a
..xls file but as soon as I put the code into a .xla I get
Compile error: variable not defined
with the debugger pointing to wdChartPicture...
I'm stumped -- any clues?
Thanks!
Jens