+ Reply to Thread
Results 1 to 8 of 8

Right-click in userform textbox.

  1. #1
    Registered User
    Join Date
    07-30-2009
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Question Right-click in userform textbox.

    Hi,

    How can I have the ability to right-click in a textbox? Currently when I right-click, nothing happens. What I would like is to have the user be able to right-click and then copy the text from the textbox.

    Any ideas

    Cheers,

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Right-click in userform textbox.

    Previous thread
    http://www.excelforum.com/excel-prog...-userform.html
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-30-2009
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Unhappy Re: Right-click in userform textbox.

    Quote Originally Posted by Andy Pope View Post
    That code doesn't work at all in my WB. I can't seem to find anything

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Right-click in userform textbox.

    why not post your workbook then

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Right-click in userform textbox.

    The code works fine. here's the code in a workbook
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    07-30-2009
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Question Re: Right-click in userform textbox.

    Ok I've gotten a code after googling for a while, and I got a menu to come up when I right-click in a textbox (menu consists of copy and paste selections).

    Now the only problem is, even after I highlight the text, right-click, and hit copy, nothing is copied to the clipboard!

    Here's the code I have ... one is for the userform code, and the other is for the module:

    UserForm

    Please Login or Register  to view this content.
    Module

    Please Login or Register  to view this content.
    Any ideas

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Right-click in userform textbox.

    Do you have macros called "Copy" & "Paste"? What do you want to copy & paste?

    Attach the workbook

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Right-click in userform textbox.

    Your are using inconsistent references.

    is it Textbox1 or tbFranchiseNumber ?

    Please Login or Register  to view this content.
    Also your copy section of TextMenu actually Cuts the selected text after copying.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1