VBA – Count the Sheets in a Workbook

Associated Files Download Links

Application.Sheets.Count – Count Worksheets

If you ever need to count the number of sheets in a workbook, use the VBA command: Application.Sheets.Count

Put this in a module:

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

Learn More!

<<Return to VBA Examples

Did you find this VBA tutorial useful? Then share it with your friends and colleagues:

You may also like some of this related content...

This article will discuss the ActiveSheet object in VBA. It will also discuss how to
If your template design requires making Excel look less like Excel, you might want to
Unhide All Worksheets in Workbook The following is a macro to unhide all worksheets in
Worksheet_Change Event You may want to run a macro when a cell changes. A popular
This tutorial will discuss how to add / insert worksheets using VBA. Add Sheet This