Thread: count tabs
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
alm09 alm09 is offline
external usenet poster
 
Posts: 7
Default count tabs

I would rather use the formula but it is not working. I get a #NAME? error.
Is there an input (i.e. file name) in the parentheses or is to remain null?


"Mike H" wrote:

You could use this function. Al + F11 to open VB editor, right click this
workbook and insert module and paste this in.

Function sheetsinbook()
sheetsinbook = Worksheets.Count
End Function

this formula in a cell will return the number of worksheets.
=sheetsinbook()

Mike



"alm09" wrote:

Is there a way to count the number of tabs in a worksheet?