I have a series of Excel workbooks that are currently set to color themes other than "Office" and I want to set them all back to the default "Office" color theme using VBA.
I know how to set the Excel color theme for a workbook in Excel to other themes using this command in VBA (ex: Office 2007 - 2010 theme):
wkbk.Theme.ThemeColorScheme.Load ("C:\Program Files\Microsoft Office\root\Document Themes 16\Theme Colors\Office 2007 - 2010.xml")
but I'm unable to determine how to set the color theme to the default "Office" theme. Comparing the color themes listed in the Excel ribbon and xml files under "C:\Program Files\Microsoft Office\root\Document Themes 16\Theme Colors", all are there in the folder except for "Office".
Using MS Office 365.
- Leaving it blank like wkbk.Theme.ThemeColorScheme.Load () causes an error.
- Leaving it blank like wkbk.Theme.ThemeColorScheme.Load ("") does nothing.
- Setting it to "Office" like wkbk.Theme.ThemeColorScheme.Load ("Office") does nothing.
I'm hoping someone knows how.