slave1spectre
New Member
- Joined
- Nov 4, 2019
- Messages
- 11
Hi All,
Hopefully this is a simple fix but the problem I'm having is that I have a textbox on a userform that is used as the intake for a value. I added some preset brackets with a SetFocus to the textbox so that when the user enters a value and adds it to the spreadsheet the program will auto-populate the brackets around the value. I've tried setting the tb to either "After Update", "Change", and "Enter" but the only one that will display the brackets properly and with the correct SetFocus within the tb is the "Change". The only problem I am having now is that when I run the macro and try entering data into that tb the cursor will be in the right place but I'm unable to type anything into the tb. This seems pretty straight forward so what am I missing?
Hopefully this is a simple fix but the problem I'm having is that I have a textbox on a userform that is used as the intake for a value. I added some preset brackets with a SetFocus to the textbox so that when the user enters a value and adds it to the spreadsheet the program will auto-populate the brackets around the value. I've tried setting the tb to either "After Update", "Change", and "Enter" but the only one that will display the brackets properly and with the correct SetFocus within the tb is the "Change". The only problem I am having now is that when I run the macro and try entering data into that tb the cursor will be in the right place but I'm unable to type anything into the tb. This seems pretty straight forward so what am I missing?
VBA Code:
Private Sub tbNEWBARCODE_Change()
tbNEWBARCODE.Value = "{}"
tbNEWBARCODE.SelStart = 1
End Sub