View Single Post
 
Old 11-16-2017, 03:42 AM
slaycock slaycock is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

A note about an intellisense annoyance. The property 'color' no longer appears in the list of properties but is valid if you actually type it in.

You can get to the hex definition of a color by looking at the values of the various items in the wdColor enumeration (View.Object Browser then type wdColor in the search box)

e.g. wdColorBlue has the hex value &HFF0000.

Note wdColorBlue is not the same as wdBlue as wdBlue is defined in the wdColorIndex enumeration and has the value 2.

Also note that the hex value &HFF0000 is in the format &HBBGGRR

So the RGB for wdColorBlue is RGB(&H00, &H00, &HFF)
Reply With Quote