Force field to be CAPS

B

BeeJay

Hi,

I was wondering if someone could help me. I am creating a VBA Word Letter
Template and want one off the address field to be capital letters. Is their
away to force this using VBA?

I have tried using

Selection.Font.AllCaps = True
and

Selection.Range.Case = wdUpperCase

but I don't think I am using them right as I can't seem to get them to work.

Thanks in advance!
 
D

Doug Robbins

Selection.Range.Case=wdUpperCase

works for me. But what sort of field are you talking about?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Chad Knudson

You can use the field format command to force the contents to uppercase,
just insert \* Upper in the field code to convert the text of the field to
uppercase characters.
 
B

BeeJay

Its a text field to hold the Town name (txtTown) and I want to make this
field Uppercase as default.
 

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