D Dale Apr 10, 2009 #1 Hi, is there a way I could display how many sheets I have in a workbook Thanks
J Jarek Kujawa Apr 10, 2009 #2 use this code/function: Function sheet_count() As Integer sheet_count = ThisWorkbook.Sheets.Count End Function press ALT+F11 to open Microsoft Visual Basic window click Insert->Module paste the code there then in any cell insert: =sheet_count() ATTENTION: the function ALL sheets in the workbook, including chart sheets and hidden sheets pls click YES if this post was helpful
use this code/function: Function sheet_count() As Integer sheet_count = ThisWorkbook.Sheets.Count End Function press ALT+F11 to open Microsoft Visual Basic window click Insert->Module paste the code there then in any cell insert: =sheet_count() ATTENTION: the function ALL sheets in the workbook, including chart sheets and hidden sheets pls click YES if this post was helpful
G Gary''s Student Apr 10, 2009 #3 Try this udf: Function sheetcount() As Long sheetcount = Sheets.Count End Function