View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Count number of sheets

Use this UDF:

Function sheetcount() As Integer
sheetcount = Worksheets.Count
End Function

--
Gary''s Student - gsnu200743


"tc" wrote:

Hi. I want to create a macro that will count the number of sheets in a
particular workbook. Is this possible?