ColorFormat.RGB Property
Word Developer Reference |
Returns or sets the red-green-blue (RGB) value of the specified color. Read/write Long.
Syntax
expression.RGB
expression A variable that represents a ColorFormat object.
Example
This example sets the color of the second shape in the active document to gray.
Visual Basic for Applications |
---|
|
This example sets the color of the shadow for Rectangle 1 in the active document to blue.
Visual Basic for Applications |
---|
|
This example returns the value of the foreground color of the first shape in the active document.
Visual Basic for Applications |
---|
|
See Also