Problem with PasteSpecial

Joined
Aug 30, 2007
Messages
1
Reaction score
0
Hello Everybody,

I am facing one strange problem in one of my VBA applications. The application uses the normal "Paste" to paste one copied signature file. I would like to use the "PasteSpecial" feature instead, so that only the text of the signature file gets inserted and not its background shade.

My code snippet:

With Selection
.Range.PasteSpecial datatype:=wdPasteEnhancedMetafile
End With


The change works fine with a certain defect.

Using normal "Paste", if 2 signature files are pasted one after the other, then the 2nd signature file comes in front of the 1st, which is correct.

But using "Paste Special", I find that the 2nd signature file gets pasted on top of the 1st! This is not something that I want.

I am unable to understand why and how to make it work the way it used to for normal "Paste". Could anyone of you experts give me some advice please.

Thanks in advance.

cheers,
SanK
 

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