Hi all, I made a command button to paste some copied text from a worksheet1 to a userform textbox in another worksheet2.
Here's my simple code:
Private Sub CommandButton1_Click()
TxtBoxProduct.Paste
End Sub
It works fine but I always have to get to the end of the textbox text after that in order to remove any blank spaces as it destroys my worksheet2 format (i.e. borders etc).
Is there a "trim" function I could add to my code?
As you can see, I'm kinda new with vba...
Many thanks in advance for your help!
Regards
Leweez
Bookmarks