Is there a property on one of the VSTO classes or interfaces that allows one to determine whether a particular worksheet in the current workbook is hidden I am currently hiding some of my sheets via Format->Sheet->Hide on the main toolbar, and I would like to be able to identify the hidden sheets programmatically.
TIA,
Nick Keller
Software Developer/Analyst
Mercury Media

VSTO property for hidden Excel sheets
tommyligo
You can go through your collection of sheets and check for visibility:
That would give something like this:
VB
If Not CType(Globals.ThisWorkbook.Sheets(1), Excel.Worksheet).Visible = _
Excel.XlSheetVisibility.xlSheetVisible Then
...
C#
if (((Excel.Worksheet) Globals.ThisWorkbook.Sheets[1])
.Visible != Excel.XlSheetVisibility.xlSheetVisible)
...
-= Maarten =-