View Single Post
  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

Ken,

(as you know), it won't recalculate unless you add an

Application.Volatile

line. The odd thing is that although it doesn't recalculate without the
added line on a sheet recalculate or when a sheet is added, it does
when a sheet is deleted ( in XL97.)

Is it the same in other versions and do you know why that would be?

Regards

Sandy

--
to e-mail direct replace @mailintor.com with @tiscali.co.uk


"Ken Wright" wrote in message
...
Put it in a module and call it with =NumShts()

Function NumShts()
NumShts = ActiveWorkbook.Sheets.Count
End Function

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

--------------------------------------------------------------------------

--
It's easier to beg forgiveness than ask permission :-)
--------------------------------------------------------------------------

--



"gjmink" wrote in message
...
This worked great the last time I had a question, so I'd thought we to

would
try again. Is there a function available that would count the number of

tabs
in a spreadsheet that has many many tabs. Thanks for your help!!
--
Have a great day and a better tomorrow!



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004