Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing specific text format. 2

Status
Not open for further replies.

eon5

Technical User
Dec 31, 2007
47
ZA
Hi,
Im using the following code to change text format to Capitals.

"production plan"
"PRODUCTION PLAN"


If KeyAscii > 96 And KeyAscii < 123 Then
KeyAscii = (KeyAscii And 223)
End If
End Sub

Is there any other way of coding so that it will only change the Firts letter to Capital format. It will look much neater and also easier for the client to read and in the same breath make the typing faster.

"Production Plan" is better than
"PRODUCTION PLAN"

Thanks
eon5
 
Have a look at the StrConv function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Take a look at the UCase(string) function. It's a lot simpler.

Ian Mayor (UK)
Program Error
If people say I have bad breath, then why do they continue to ask me questions and expect me to answer them?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top