We help IT Professionals succeed at work.

Word macro string lowercase

etech0
etech0 asked
on
I have a word macro that stores a variable as a string. How can I change the case of the string to lowercase, or to Capitalize Each Word?
Comment
Watch Question

Retired
CERTIFIED EXPERT
Top Expert 2012
Commented:
You can change to lowercase so:

strLower - Lcase(strMyString)

GrahamSkanRetired
CERTIFIED EXPERT
Top Expert 2012

Commented:
You can change the case if it is a range,

MyRange.Case = wdTitleWord
strProper =   MyRange.Text

Author

Commented:
Great answer, and quick, too.
Thanks!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.