Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to enable the right mouse click in userforms to allow cut copy
paste in text/combo boxes? The default setting seems to have this option disabled?? Thanks, Roger |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() There arre a number of menus in Excel such as the worksheet Find that the right mouse doesn't work but the shortcuts (Copy Cntl-C, Paste Cntl-V and cut Cntl-X) do work. Not sure why. -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=166990 Microsoft Office Help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I asked this forum and others if that could be done and no one seemed to know
if its possible. In the mean time I have been using Ctrl + C to Copy Ctrl + V to Paste I guess you could possibly right some code in the Right Click Event that would intialize a custom menu, but the trick would be how to access the clipboard. Hope this helps! If so, let me know, click "YES" below. -- Cheers, Ryan "Roger on Excel" wrote: Is there a way to enable the right mouse click in userforms to allow cut copy paste in text/combo boxes? The default setting seems to have this option disabled?? Thanks, Roger |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have asked this question before in this forum and other forums, but with no
reply that I'm aware of. I have been using Ctrl + C to Copy Ctrl + V to Paste There may be a way to put code into the Right Click Event that would intialize a custom menu, but the trick would be accessing the clipboard. Not sure if that is possible. -- Cheers, Ryan "Roger on Excel" wrote: Is there a way to enable the right mouse click in userforms to allow cut copy paste in text/combo boxes? The default setting seems to have this option disabled?? Thanks, Roger |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you get off the ground with a rightclick menu the following clipboard
routines may be useful Public Function TestClip() As Boolean ' Test for empty clipboard Application.Volatile (True) TestClip = IIf(Len(Trim(GetOffClipboard)) = 0, False, True) End Function Public Sub PutOnClipboard(Text As String) Dim DataObj As New MSForms.DataObject ' REFERENCE SET IF INCLUDE DUMMY USERFORM MODULE ! DataObj.SetText Text DataObj.PutInClipboard End Sub Public Function GetOffClipboard() As String ' Extract text from clipboard Application.Volatile (True) Dim DataObj As New MSForms.DataObject DataObj.GetFromClipboard On Error GoTo ClipBError GetOffClipboard = DataObj.GetText Exit Function ClipBError: GetOffClipboard = "" End Function -- Ken "Using Dbase dialects since 82" "Started with Visicalc in the same year" "Ryan H" wrote: I have asked this question before in this forum and other forums, but with no reply that I'm aware of. I have been using Ctrl + C to Copy Ctrl + V to Paste There may be a way to put code into the Right Click Event that would intialize a custom menu, but the trick would be accessing the clipboard. Not sure if that is possible. -- Cheers, Ryan "Roger on Excel" wrote: Is there a way to enable the right mouse click in userforms to allow cut copy paste in text/combo boxes? The default setting seems to have this option disabled?? Thanks, Roger |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
You may find this useful. http://www.andypope.info/vba/uf_contextualmenu.htm The principles can be applied to a combobox. Cheers Andy Roger on Excel wrote: Is there a way to enable the right mouse click in userforms to allow cut copy paste in text/combo boxes? The default setting seems to have this option disabled?? Thanks, Roger -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mouse double-click to select listbox item and run userform | Excel Programming | |||
UserForm - Right-click a Textbox and Paste | Excel Programming | |||
The right click on my mouse does not give me the option to paste | Excel Discussion (Misc queries) | |||
UserForm TextBoxes (with ControlSource set) won't clear in one click | Excel Programming | |||
Paste text copied from Excel into External App.using right mouse click | Excel Programming |