PDA

View Full Version : Solved: On Paste Event?



markh1182
12-14-2007, 04:15 AM
Hi,

Is it possible to have an event that fires when someone pastes into a document?

When someone pastes, I want to be able to put up a message box warning to make sure they are using the correct paste (normal or paste unformatted text).

Thanks, Mark

TonyJollans
12-14-2007, 09:15 AM
Sometimes I wish there were such an event.

One possible way might be to have a macro called EditPaste which would run instead of the Paste and in which you could do as you wished. Off the top of my head I don't know all the other commands you'd need to trap - EditPasteSpecial, etc.

markh1182
12-17-2007, 02:18 AM
Having a macro called EditPaste should do the job for me.

Thanks for the advice.