How to find the type of Sheet in Excel.Workbook.sheets collection
Sub SheetTypes()
Dim sh As Object
For Each sh In ActiveWorkbook.Sheets
Debug.Print TypeName(sh)
Next
End Sub
--
Vasant
"Raj" wrote in message
m...
Hi,
How can I find out what type of sheet ( Chart, Dialog, worksheet ) is
present in Excel workbook.Sheets collection. I need to perform two
different operations based on the type.
Thanks,
|