PDA

View Full Version : converting variable to upper case



phill952000
12-10-2008, 03:18 AM
hi,

could anyone help with a small piece of code that i need.

what i have is formfields in my word document and i pass the info into different variables.

what i want to achieve is keep the formfields in the word document as lower case but i want the variables to convert the info to uppercase so when i use the info at a later time, it is upper case

cheers

TonyJollans
12-10-2008, 04:59 AM
Look at the UCase function

fumei
12-10-2008, 09:53 AM
As in:

variable = UCase(ActiveDocument.Formfields("Text1").Result)