Distinguishing Sheet Types with Visual Basic Macro (108350)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q108350 SUMMARY
You can use the Microsoft Visual Basic for Applications TypeName function
to return each type of sheet available in Microsoft Excel. Because the
Worksheet type can apply to worksheets, MS Excel 4.0 Macro sheets, or MS
Excel 4.0 International Macro sheets, you must use the Type property along
with the TypeName function to return the specific type of worksheet.
The sample macro (Sub procedure) in the "More Information" section of this
article displays the appropriate sheet name for each sheet:
Chart
DialogSheet
Module (except in Microsoft Excel 97 and Microsoft Excel 98)
MS Excel 4.0 Macro Sheet
MS Excel 4.0 International Macro Sheet
Worksheet
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB108350 |
---|
|