Textbox Writing

G

Greg B

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
 
R

Rick Rothstein \(MVP - VB\)

Only the first letter?

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

Rick
 
G

Greg B

Thanks rick
Yes just for the names

Greg
Rick Rothstein (MVP - VB) said:
Only the first letter?

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

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Combobox selection 1
textbox sort 1
textbox formatting questions 4
textbox Do nothing 1
Excell Formula 5
Set value of all Userform textboxes to "" 4
searchbox in excel sheet 1
Upper case in textbox 2

Top