The information in this article applies to:
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.
Chart MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspThe following Visual Basic code examples assume that you have a workbook that contains one worksheet, one MS Excel 4.0 Macro sheet, one chart sheet, one dialog sheet, and one Visual Basic module, in that order. The code example is located in the Visual Basic module. To run the macro, position the insertion point in the line that reads "Sub Sheet_Type()" and click Start on the Run menu.
When you run the Sheet_Type subroutine, the messages you receive are:
Worksheet, MS Excel 4.0 Macro Sheet, Chart, DialogSheet, ModuleNOTE: In Microsoft Excel 97 and Microsoft Excel 98, you do not receive a message box for the module. This occurs because of the design of the Visual Basic Editor in these versions of Microsoft Excel. Additional query words: 5.00c 7.00a XL98 XL97 XL7 XL5
Keywords : kbprg kbdta kbdtacode PgmOthr KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |