VBA for Microsoft Word, Macro to Display the Patterns of all available text highlight Colors on a form

I am looking for a Microsoft Word VBA macro, to Display the Patterns of all available text highlight Colors (found in the standard word home menu) with their numbers.

It should be something like this:

UserForm1

(Colored Rectangle with the Color1) Number of Color1
(Colored Rectangle with the Color2) Number of Color2
(Colored Rectangle with the Color3) Number of Color3

Etc.....

Any Ideas?

Full points given.




LVL 1
New_AlexAsked:
Who is Participating?
 
GrahamSkanRetiredCommented:
I am probably looking in the wrong place. The hightliogh colours don't have a partter, but here is a list of their names:

wdAuto
wdBlack
wdBlue
wdBrightGreen
wdByAuthor
wdDarkBlue
wdDarkRed
wdDarkYellow
wdGray25
wdGray50
wdGreen
wdNoHighlight
wdPink
wdRed
wdTeal
wdTurquoise
wdViolet
wdWhite
wdYellow
0
 
GrahamSkanRetiredCommented:
Oops.

"hightliogh colours don't have a partter"

should be

highlight colours don't have a pattern"
0
 
New_AlexAuthor Commented:
Hi Graham....

Thanks for the answer. I will give you the points but with a Grade C, because it didn't actually answered my question.

I found a way to do the coding using colored buttons in a form. When I click a colored button it assigns a global variable to it.

Anyway.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.