How did you create the sub?
The easiest way is to select the textbox from the left hand dropdown above the code window and then pick the event, BeforeDropOrPaste in this case, from the right hand dropdown.
If you do that you'll end up with something like this, oviously the TexBox1 bit will change to reflect the name of your textbox.
Private Sub TextBox1_BeforeDropOrPaste(ByVal Cancel As MSForms.ReturnBoolean, ByVal Action As MSForms.fmAction, ByVal Data As MSForms.DataObject, ByVal X As Single, ByVal Y As Single, ByVal Effect As MSForms.ReturnEffect, ByVal Shift As Integer)
End Sub
Bookmarks