Class Theme (PowerPoint VBA)

The class Theme represents a theme (a collection of colors, fonts, and effects).

Set

To use a Theme class variable it first needs to be instantiated, for example

Dim thm as Theme
Set thm = Dim strthemeFileName As String: strthemeFileName = 
Application.OpenThemeFile(themeFileName:=strthemeFileName)

Theme class variables can be set using the Application.OpenThemeFile procedure.

Parent

Returns the parent for the specified object. Read-only object.

ThemeVariants

Returns a ThemeVariants collection that represents the variations in the theme.

Dim tvsThemeVariants As ThemeVariants
Set tvsThemeVariants = Application.OpenThemeFile.ThemeVariants