Worksheets.count with exemption

Olaf Jacobs

New Member
Joined
Jun 7, 2019
Messages
10
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
Hi all,

Im looking for a way to filter out the two sheets of the worksheets.count

I use VBA to create an new sheet and then to rename this sheet, so vba counts the amount of sheets and ads one etc, but I also have two sheets in the workbook with an name and this is also taking in the total sum of the count. So how do i filter these two sheets out ?
The name is "stop" and "performance"

Thanks in advance..
 
If I want to create a new sheet and position it some exact place I use a script like this:
Code:
Sub Make_New_Sheet()
'Modified  7/4/2019  11:44:20 AM  EDT
Sheets.Add(After:=Sheets("Alpha")).Name = "Bravo"
End Sub
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top