Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, On a Userform, does anyone know if you can set a textbox up so that when characters are entered they are automatically changed to upper case? Cheers Jim. -- Jimbo1 ------------------------------------------------------------------------ Jimbo1's Profile: http://www.excelforum.com/member.php...o&userid=30637 View this thread: http://www.excelforum.com/showthread...hreadid=534510 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim,
using textbox_change event you can change its value to upper case. Something like this: Private Sub textboxA_Change( ) application.enableevents=false textboxA.value=ucase(textboxA.value) application.enableevents=true end sub I hope I didn't mistype, I wrote it from scratch, didn't test it in VBA. Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
Private Sub Textbox1_Change() Textbox1.Text = UCase(Textbox1.Text) End Sub "Jimbo1" wrote: Hi, On a Userform, does anyone know if you can set a textbox up so that when characters are entered they are automatically changed to upper case? Cheers Jim. -- Jimbo1 ------------------------------------------------------------------------ Jimbo1's Profile: http://www.excelforum.com/member.php...o&userid=30637 View this thread: http://www.excelforum.com/showthread...hreadid=534510 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the textbox change event and upshift it
Private Sub TextBox1_Change() With Me.TextBox1 .Text = UCase(.Text) End With End Sub -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Jimbo1" wrote in message ... Hi, On a Userform, does anyone know if you can set a textbox up so that when characters are entered they are automatically changed to upper case? Cheers Jim. -- Jimbo1 ------------------------------------------------------------------------ Jimbo1's Profile: http://www.excelforum.com/member.php...o&userid=30637 View this thread: http://www.excelforum.com/showthread...hreadid=534510 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Excellent, works perfectly. Cheers Guys -- Jimbo1 ------------------------------------------------------------------------ Jimbo1's Profile: http://www.excelforum.com/member.php...o&userid=30637 View this thread: http://www.excelforum.com/showthread...hreadid=534510 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
EnableEvents have no bearing on userforms.
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "Ivan Raiminius" wrote in message oups.com... Hi Jim, using textbox_change event you can change its value to upper case. Something like this: Private Sub textboxA_Change( ) application.enableevents=false textboxA.value=ucase(textboxA.value) application.enableevents=true end sub I hope I didn't mistype, I wrote it from scratch, didn't test it in VBA. Regards, Ivan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Highlight all Text in a Textbox when the textbox is selected | Excel Programming | |||
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys | Excel Programming | |||
Textbox Bug? Missing/delayed update of textbox filled via VBA | Excel Programming | |||
Textbox Bug? Missing/delayed update of textbox filled via VBA | Excel Programming | |||
UserForm TextBox to ActiveSheet TextBox over 256 characters | Excel Programming |