flyingmonkeyofdoom
Board Regular
- Joined
- Sep 22, 2010
- Messages
- 161
I wonder if any one can help wi the below code.
What should happen is that via a userform a barcode is scanned and entered into a textbox.
The scanner is set up to move to the next cell down (Return); which i am hoping to use as a trigger to do the below and start running some other code.
Current as soon as anything (letters, numbers etc) is entered the code starts and doesn't let the information be entered.
I need it to enter the information and when, and only, the infomration and ENTER/carriage return is used to implement the code below
What should happen is that via a userform a barcode is scanned and entered into a textbox.
The scanner is set up to move to the next cell down (Return); which i am hoping to use as a trigger to do the below and start running some other code.
Current as soon as anything (letters, numbers etc) is entered the code starts and doesn't let the information be entered.
I need it to enter the information and when, and only, the infomration and ENTER/carriage return is used to implement the code below
Code:
Private Sub TextBox1_Change()
If TextBox1.EnterKeyBehavior = True Then
Range("F1") = UserForm3.TextBox1.Value
Call Pivot_test
End If
End Sub
Last edited: