lower case

kitty77

Registered User.
Local time
Today, 18:31
Joined
May 27, 2019
Messages
715
I have a form that has a field (name) that has all CAPS. How can I create a command button (vba) that will convert that field to lower case?

Thanks.
 
Is there any way to make the the first letter of each word CAP and the rest lower case?
Example: SUNSHINE STRORAGE SYSTEMS, would be Sunshine Storage Systems

Thanks.
 
Read the link there are other conversions
Code:
Me.ControlName = strConv(me.controlname, vbPropercase)
vbUpperCase1Converts the string to uppercase characters.
vbLowerCase2Converts the string to lowercase characters.
vbProperCase3Converts the first letter of every word in a string to uppercase.
vbWide4Converts narrow (single-byte) characters in a string to wide (double-byte) characters.
vbNarrow8Converts wide (double-byte) characters in a string to narrow (single-byte) characters.
vbKatakana16Converts Hiragana characters in a string to Katakana characters.
vbHiragana32Converts Katakana characters in a string to Hiragana characters.
vbUnicode64Converts the string to Unicode using the default code page of the system. (Not available on the Macintosh.)
vbFromUnicode128Converts the string from Unicode to the default code page of the system. (Not available on the Macintosh.)
 
Is there any way to make the the first letter of each word CAP and the rest lower case?
Example: SUNSHINE STRORAGE SYSTEMS, would be Sunshine Storage Systems

Thanks.
No automated process is going to be perfect. What you refer to here, i.e. Proper Case, won't account for names like "The Franklin O'Donohue Corp" and others of that type. The final step will always involve the use of the basic Human Eyeball.
 

Users who are viewing this thread

Back
Top Bottom