Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Textbox Writing

Hi,

I am wondering what code would i use to have the first letter of a textbox
be changed to a capital letter?

i am using the text boxes firstname & surname as the textboxes

Thanks in advance

Greg B


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Textbox Writing

Only the first letter?

TextBox1.Text = UCase(Mid(TextBox1.Text, 1, 1)) & Mid(TextBox1, 2)

Rick


"Greg B" wrote in message
...
Hi,

I am wondering what code would i use to have the first letter of a textbox
be changed to a capital letter?

i am using the text boxes firstname & surname as the textboxes

Thanks in advance

Greg B



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Textbox Writing

Thanks rick
Yes just for the names

Greg
"Rick Rothstein (MVP - VB)" wrote in
message ...
Only the first letter?

TextBox1.Text = UCase(Mid(TextBox1.Text, 1, 1)) & Mid(TextBox1, 2)

Rick


"Greg B" wrote in message
...
Hi,

I am wondering what code would i use to have the first letter of a
textbox be changed to a capital letter?

i am using the text boxes firstname & surname as the textboxes

Thanks in advance

Greg B





Reply
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
Writing output to a textbox while VBA macro is running Chip Pearson Excel Programming 0 January 6th 07 12:40 AM
writing data to a textbox in a chart CLamar Excel Discussion (Misc queries) 0 July 21st 06 02:57 PM
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman[_4_] Excel Programming 0 February 22nd 05 08:50 PM
VBA Userform Textbox re-writing cells in Excel Pete Excel Programming 5 November 7th 04 09:43 PM
Userform Textbox writing to a cell Rich[_12_] Excel Programming 3 July 22nd 03 02:34 AM


All times are GMT +1. The time now is 03:39 AM.

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"