Forum Discussion

GEEK_21's avatar
GEEK_21
Brass Contributor
Mar 06, 2023
Solved

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...
  • JKPieterse's avatar
    Mar 06, 2023
    Add this as the first line:
    If Sh.Name = "B" Then Exit Sub

Resources