Expand Minimize
This topic has not yet been rated - Rate this topic

WorksheetBase.Tab Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a Microsoft.Office.Interop.Excel.Tab for the worksheet.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
public Tab Tab { get; }

The following code example uses the Tab property to set the primary color of the worksheet's tab to blue.

This example is for a document-level customization.

private void SetTabColor()
    // Set the color to the RGB value for blue. 
    this.Tab.Color = 0xFF0000;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.