Hooking into EditPaste and then reproducing default behavior

Y

YouCanCallMeAl

I'm working on a Word template and I need to monitor what's being
pasted. I have a Sub in a template called EditPaste that catches when
people paste and allows me to check what it is before I call
Selection.Paste to actually do the paste. The problem is that the
Paste Options menu that appears to the lower right of the pasted text
doesn't appear when I do this. I see that there is a Word Command you
can bind keys to called EditPasteOption which does what I'd like to
do, but I can't figure out any way to invoke that from my code. Is
there any way to call this form of paste from inside a Sub? Is there
any other way to accomplish this goal?

Thanks,
Alan
 

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