expression.ApplyTheme(ThemeName)
expression Required. An expression that returns one of the objects in the Applies To list.
ThemeName Required String. The name of the Office theme.
Remarks
The ApplyTheme method provides a means of changing environment options from Visual Basic code.
Example
The following example applies the Artsy theme to the data access page named "Switchboard".
DataAccessPages("Switchboard").ApplyTheme "Artsy"