How to put title case or initial caps in a form's text box

C

Colin Coady

Using OL2000 - I want to have the text automatically formatted to initial
caps or as it's sometimes called "Title case" in a text box of a newly
designed OL form.
Is there a way of doing this?
Thanks
 
E

Eric Legault [MVP - Outlook]

If you have the text box bound to a field, you can intercept changes to the
value in the control via the PropertyChange or CustomPropertyChange event.
Although there is no VBA or VBScript function to format a string to title
case AFAIK (there is in Word VBA), you can use LCase or UCase functions with
judicious use of Left, Mid and Right functions to control the case of various
characters within a string.
 

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

Top