Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding right click menu to textbox אלי Excel Programming 3 July 3rd 07 06:46 AM
Can you Click the "Enter" key to go to the next line in a Textbox without Exiting the Textbox ? Corey Excel Programming 1 February 22nd 07 05:09 AM
set textbox cursor in mouse right-click RB Smissaert Excel Programming 11 November 5th 06 05:06 PM
userform label double-click goes to click event John Paul Fullerton Excel Programming 3 May 19th 06 05:54 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 04:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"