This documentation is archived and is not being maintained.

RectangularGradient Object

Office 2007
The RectangularGradient object transitions through a series of colors in a linear manner along a specific angle.

Version Information
 Version Added:  Excel 2007


Bb243130.vs_note(en-us,office.12).gif  Note
Some things to consider when working with RectangularGradient objects
  • Attempting to access a Gradient property of an Interior object that does not have an existing gradient fill will result in a Run Time Error. Be aware of the Interior.Pattern property before accessing the Gradient property.
  • If Interior.Pattern is changed from a gradient type to a non-gradient type, the Gradient object will populate with default values.