Export (0) Print
Expand All
Expand Minimize

THEMEGUARD Function

Last modified: June 17, 2011

Applies to: Office 2013 | Visio 2013

In this article
Syntax
Remarks
Example

Guards the formatting cells of a shape to ensure that they use appropriate aspects of the current theme.

THEMEGUARD()

Applying the THEMEGUARD function to a cell does not guard against manual formatting in the same way that applying the GUARD function does. If you apply formatting to the shape in the user interface or programmatically, by means of Automation, the THEMEGUARD formula is overridden, unless you include the SETATREFEXPR function in the formula to store the manual formatting value.

Shape.FillForegnd = THEMEGUARD(THEME("AccentColor2")

Specifies that the shape take the Accent 2 color from the current theme, rather than the main theme fill color.

Show:
© 2015 Microsoft