Bold Every Other Word

BustACode

New Member
Joined
Sep 17, 2015
Messages
2
I would like to have VBA bold every other word in a Word 2007 document.

Though I have never really taken to VBA, I thought, "No problem." Wrong.

Seems VBA maintains that punctuation and paragraph marks are words. I overcame that by testing for case of the left most character of what VBA thinks is a word.
Code:
Case 48 To 57, 65 To 90, 97 To 122
Problem is, I cannot figure out how to then change the format to bold of the pertinent word.

Any help would be appreciated.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,392
Office Version
365
Platform
Windows
Can we see the rest of the code?
 

Forum statistics

Threads
1,085,588
Messages
5,384,615
Members
401,913
Latest member
chethan av

Some videos you may like

This Week's Hot Topics

Top