Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good Morning NG,
I have a text box that I receive user input for states. I have the MaxLenght set to 2 so only things Like CA, NV, AZ can entered, but sometimes the user wants to put in ca, nv, or az. How can I set the text box to automatically capitalize the letters for the users in VBA code Thanks Karen |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Use the following code: Private Sub TextBox1_Change() TextBox1.Text = UCase(TextBox1.Text) End Sub -- JP http://www.solutionsvba.com "Karen Agostinho" wrote in message ... Good Morning NG, I have a text box that I receive user input for states. I have the MaxLenght set to 2 so only things Like CA, NV, AZ can entered, but sometimes the user wants to put in ca, nv, or az. How can I set the text box to automatically capitalize the letters for the users in VBA code Thanks Karen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
UserForm | Excel Worksheet Functions | |||
UserForm | Excel Worksheet Functions | |||
UserForm | Excel Discussion (Misc queries) | |||
Userform | Excel Discussion (Misc queries) | |||
Userform | Excel Programming |