Results 1 to 1 of 1

R Click paste/copy in an textbox userform

Threaded View

  1. #1
    Registered User
    Join Date
    08-04-2017
    Location
    CONSTANTA
    MS-Off Ver
    2010
    Posts
    10

    R Click paste/copy in an textbox userform

    Hello everybody,

    I`m trying to alow a user to use right and left click in an userform textbox to paste information, using ctrl V does the job done. I`m fairly new to VBA programming and managed to find the code underneath to do this. The code displays the option to copy or paste but then nothing else happens, no text is copied or pasted. Can you help me with this?
    Sub MakePopUp()
    
    On Error Resume Next
    CommandBars("MyPopUp").Delete
    On Error GoTo 0
    
    With CommandBars.Add(Name:="MyPopUp", Position:=msoBarPopup)
    .Controls.Add Type:=msoControlButton, ID:=19
    .Controls.Add Type:=msoControlButton, ID:=22
    End With
    
    End Sub
    Private Sub Text1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
    
    MakePopUp
    If Button = 2 Then
    Application.CommandBars("MyPopUp").ShowPopup
    End If
    
    End Sub
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you (and removed the unreadable color) this time because you are a new member. --6StringJazzer

    Thank You,
    Chris
    Last edited by 6StringJazzer; 05-04-2018 at 09:08 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy Paste value of UserForm TextBox to another Cell in a different sheet
    By Archrael0327 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2016, 06:59 AM
  2. copy paste data from a userform textbox to worksheet
    By jalmeida87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2015, 10:51 AM
  3. Userform Textbox - Capturing Mouse Click
    By CraigsWorld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2015, 12:22 AM
  4. Copy visible cells in filtered table and paste in userform textbox - email
    By pfeifferjoey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2014, 11:23 AM
  5. Userform w/textbox search a table for a value on click
    By trader07 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-30-2011, 03:45 AM
  6. Right-click in userform textbox.
    By ilovelagar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2009, 03:08 PM
  7. Copy/Paste from worksheet to textbox in userform
    By jarrods in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2009, 05:52 PM

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