LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Excel User Form- Format Proper Case

Another way that's built into VBA is to use StrConv:

mystr = StrConv(myStr, vbProperCase)




John Wilson wrote:

dina,

In VBA, what you're looking for is Application.Proper
If you're using a UserForm TextBox, one way would be to use
the After_Update Event of the TextBox.

Example:

Private Sub TextBox1_AfterUpdate()
TextBox1.Value = Application.Proper(TextBox1)
End Sub

John

"dpaulos " wrote in message
...
hello,
i have created my first user form, to input names and addresses. i
would like the text to show up as proper case.

can anyone tell me a simple way to accomplish this and also
where this code is supposed to go (ie. in the textbox code, user form
code, etc.).

i'm currently putting code into the private sub for each textbox. this
isn't working.

thanks,
dina


---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change from upper case to proper case in excel 2002 CT Man[_2_] Excel Discussion (Misc queries) 8 January 8th 08 06:14 PM
excel'03 how to convert a column from upper case to proper case sharie palmer Excel Discussion (Misc queries) 1 January 30th 06 11:50 PM
Excel: How do I change all upper case ss to proper case? Moosieb Excel Worksheet Functions 3 January 13th 06 12:45 AM
Changing Upper case to Proper Case Mountain Excel Worksheet Functions 1 January 13th 05 10:37 PM
Excel User Form- Format Proper Case dpaulos Excel Programming 0 January 27th 04 02:02 AM


All times are GMT +1. The time now is 08:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"