Thread: [Solved] Textbox & Edit Paste text
View Single Post
 
Old 08-19-2009, 04:00 PM
MikeWM MikeWM is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2009
Posts: 4
MikeWM is on a distinguished road
Angry Textbox & Edit Paste text

Hi,

I have a word (2003) document containing many Activex textboxes which are used to apply a character limit to the users input. Sometimes users want to paste data into the textbox from another source – Ctrl V – works fine, but if they try to do it via the Edit – Paste – menu then the textbox is deleted and replaced with the pasted text.

I tried intercepting the menu option with a selection.paste macro, and also a sendkeys (ctrl v) macro but neither of them worked. Selection.paste still deletes the texbox, and the sendkeys macro allowed paste to work in the textbox but not the rest of the document (other things need to be pasted in the document also). Any ideas?

Many thanks.
Reply With Quote