Copy/Paste

G

Guest

From within a VBA MsAccess application I:
- open a Visio document,
- selectAll objects,
- copy to clipboard
- open a Word Document
- Paste : "wDoc.Selection.PasteAndFormat wdPasteEnhancedMetafile"

I get a run-time error "4605 Command not available"

If I change the Paste statement as "wDoc.Selection.Paste" I have no
problems, but I don't like this, because I need to copy an Image of the Visio
Page.

Can any body help me?
Thanks
 
P

privatenews

Hello Bruno,

wdPasteEnhancedMetafile is not an type supported by PasteAndFormat:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/htm
l/womthPasteAndFormat_HV03082248.asp

You may want to use PasteSpecial method to test

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd11/htm
l/womthpastespecial1_hv03076977.asp

WordApp.Selection.PasteSpecial DataType:=wdPasteEnhancedMetafile

Please also post the issue in office develop newsgroup so that you may get
more qualified answers there.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top