Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upper case in textbox
Hi all,
How do I set up a userform when i exit textbox1 it automatically changes the text in the box to uppercase. Thanks in advance Greg |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upper case in textbox
Hi Greg,
Try: '============= Private Sub TextBox1_Exit(ByVal Cancel _ As MSForms.ReturnBoolean) With Me.TextBox1 .Text = UCase(.Text) End With End Sub '<<============= --- Regards, Norman "Greg" wrote in message ... Hi all, How do I set up a userform when i exit textbox1 it automatically changes the text in the box to uppercase. Thanks in advance Greg |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upper case in textbox
Thanks Norman
"Norman Jones" wrote in message ... Hi Greg, Try: '============= Private Sub TextBox1_Exit(ByVal Cancel _ As MSForms.ReturnBoolean) With Me.TextBox1 .Text = UCase(.Text) End With End Sub '<<============= --- Regards, Norman "Greg" wrote in message ... Hi all, How do I set up a userform when i exit textbox1 it automatically changes the text in the box to uppercase. Thanks in advance Greg |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Upper case in textbox
If you want the text to be uppercase as you are typing the text use this code
below. Private Sub TextBox1_Change() With Me.TextBox1 .Text = UCase(.Text) End With End Sub It's nearly exactly the same except you have it opperate as soon as the information within the textbox is changing. Thanks to Norman for giving the starting point and code. :) Rob "Greg" wrote: Thanks Norman "Norman Jones" wrote in message ... Hi Greg, Try: '============= Private Sub TextBox1_Exit(ByVal Cancel _ As MSForms.ReturnBoolean) With Me.TextBox1 .Text = UCase(.Text) End With End Sub '<<============= --- Regards, Norman "Greg" wrote in message ... Hi all, How do I set up a userform when i exit textbox1 it automatically changes the text in the box to uppercase. Thanks in advance Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
convert lower to upper case automatically without using UPPER | Excel Discussion (Misc queries) | |||
Changing upper case characters to upper/lower | Excel Discussion (Misc queries) | |||
Changing file in all upper case to upper and lower case | Excel Discussion (Misc queries) | |||
Change the text from lower case to upper case in an Excel work boo | Excel Discussion (Misc queries) | |||
How do I convert all upper case excel sheet into upper and lower . | Excel Discussion (Misc queries) |