Try the following code
ActiveWorkbook.Worksheets.Count
it will return you total numbers of worksheets in the active workbook.
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
|