Export (0) Print
Expand All
Expand Minimize

Workbook.ApplyTheme Method (2007 System)

Applies the specified theme to the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

public void ApplyTheme(
	string Filename
)

Parameters

Filename
Type: System.String

The full file path of the theme to apply.

The following code example switches the workbook theme to the Foundry theme.

This example is for a document-level customization.

private void SwitchToFoundryTheme()
{
    this.ApplyTheme(@"C:\Program Files\Microsoft Office\" +
                      @"Document Themes 12\Foundry.thmx");
}

Community Additions

ADD
Show:
© 2015 Microsoft