Gets the number of worksheets in the specified workbook
static int WorkbookGetWorksheetCount( long& count, LPCTSTR name_text = 0 ); |
A reference to an integer which will be populated with the sheet count if the function succeeds.
Name_text is the name of an open workbook. If omitted, the active workbook is used.
Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.
See the Microsoft Excel on-line Help for full details about this function.
Header: xlfuncs.h