Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
UserForm - Right-click a Textbox and Paste
In a UserForm TextBox, is there a way to allow right-clicking? For example,
I'd like to be able to right-click inside of a textbox and get the menu option to Paste. I know I can use Ctrl+v, but I'd like to know if it can be done completely from the mouse. Thanks, Paul -- |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
UserForm - Right-click a Textbox and Paste
The problem seems to be that userform textboxes do not have context menus in
run mode, and userforms do not support menus of any sort in run mode. If you want a right click on a text box to do a paste without benefit of a menu it could be as simple as: Private Sub TextBox1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) If Button = 2 Then ''Right mouse button SendKeys "^v" End If End Sub -- Jim "PCLIVE" wrote in message ... In a UserForm TextBox, is there a way to allow right-clicking? For example, I'd like to be able to right-click inside of a textbox and get the menu option to Paste. I know I can use Ctrl+v, but I'd like to know if it can be done completely from the mouse. Thanks, Paul -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
adding right click menu to textbox | Excel Programming | |||
Can you Click the "Enter" key to go to the next line in a Textbox without Exiting the Textbox ? | Excel Programming | |||
set textbox cursor in mouse right-click | Excel Programming | |||
userform label double-click goes to click event | Excel Programming | |||
UserForm TextBox to ActiveSheet TextBox over 256 characters | Excel Programming |