Copy/Past code knocks out NumLock Key

  • Code
    1. Private Sub txtPassName_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
    2. If Button = 2 Then Run "MyRightClickMenuUserForm"
    3. End Sub


    Me.txtPassName.value = "Cut me, Copy me, Paste me or Undo me"


  • Please read the Forum Rules and use Code Tags when posting code on the Forum. You need to add the code again properly because it is unreadable at the moment.


    I also see no point in using SendKeys, that method is unreliable.

  • Sendkeys is also the cause of this problem. :)

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Post by thegtafive ().

    This post was deleted by royUK: SPAM ().