Forum Discussion
GEEK_21
Mar 06, 2023Brass Contributor
Exclude VBA from running on a sheet | Help !
Hello everyone. so I have a Workbook with 6 sheets named 1 2 3 4 5 and a sheet named B and I have a VBA code and I want it to run only on the five sheets and exclude sheet B Private Sub...
- Mar 06, 2023Add this as the first line:
If Sh.Name = "B" Then Exit Sub
JKPieterse
Mar 06, 2023Silver Contributor
Add this as the first line:
If Sh.Name = "B" Then Exit Sub
If Sh.Name = "B" Then Exit Sub
- GEEK_21Mar 06, 2023Brass ContributorThank you very much it works