PDA

View Full Version : how to paste an enhanced metafile in word



tomkane
07-05-2011, 04:14 AM
i am trying to paste a number of excel charts into word as an enhanced metafile. i have successfully used the line

doc.Selection.Paste

but when i try to change the code to the following i get an error message

doc.Selection.PasteSpecial DataType:=wdPasteEnhancedMetafile, Placement:=wdInLine

what am i doing wrong?

Frosty
07-05-2011, 09:14 AM
It would help to know what the error message says.

tomkane
07-05-2011, 09:24 AM
i have now resolved this problem. i was not referencing the Word Object libruary.