Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default right mouse click - cut copy paste in userform textboxes?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default right mouse click - cut copy paste in userform textboxes?


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default right mouse click - cut copy paste in userform textboxes?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default right mouse click - cut copy paste in userform textboxes?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default right mouse click - cut copy paste in userform textboxes?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default right mouse click - cut copy paste in userform textboxes?

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
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
Mouse double-click to select listbox item and run userform Lemi Excel Programming 3 July 19th 09 03:01 PM
UserForm - Right-click a Textbox and Paste PCLIVE Excel Programming 1 April 17th 08 12:35 AM
The right click on my mouse does not give me the option to paste Mouse Trouble Excel Discussion (Misc queries) 3 November 23rd 05 05:36 PM
UserForm TextBoxes (with ControlSource set) won't clear in one click Paul Martin Excel Programming 2 March 17th 05 11:55 AM
Paste text copied from Excel into External App.using right mouse click MikeR[_2_] Excel Programming 0 October 25th 04 01:37 PM


All times are GMT +1. The time now is 08:46 AM.

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

About Us

"It's about Microsoft Excel"