Hello All,</SPAN>
I am very new to VBA so I would like to apologize in advance if this is a highly trivial and basic question.</SPAN>
With that said I am developing a workbook that will ultimately end up serving as a database. In the workbook, there will be ~120 tabs with each tab containing information for a single customer. In addition to the customer tabs, there are three tabs serving as the database itself. I am currently utilizing: Private Sub Workbook_SheetChange(ByVal SH As Object, ByVal Target As Range) given that I would like the ensuing macro to work on all 120 of the customer tabs. Is there a way to use the workbook event change sub yet teach the sub to ignore changes on specific sheets?</SPAN>
I currently have this:</SPAN>
Private Sub Workbook_SheetChange(ByVal SH As Object, ByVal Target As Range)
If Target.Address = "$F$14" Then
Select Case Range("F14")
Case "Yes"
MsgBox "Please enter ............."
Range("G14").Locked = False
Range("G14").FormulaHidden = False
Range("G14").Activate
Case Is <> "Other"
Range("G14").Locked = False
Range("G14").ClearContents
Range("G14").Locked = True
Range("G14").FormulaHidden = False
End Select
End If
and the macro continues on much futher from there. Is there way for me to tell the sub to not run if sheets named "Grid" , "Comparison Table" , and "Group" are active?
I am very new to VBA so I would like to apologize in advance if this is a highly trivial and basic question.</SPAN>
With that said I am developing a workbook that will ultimately end up serving as a database. In the workbook, there will be ~120 tabs with each tab containing information for a single customer. In addition to the customer tabs, there are three tabs serving as the database itself. I am currently utilizing: Private Sub Workbook_SheetChange(ByVal SH As Object, ByVal Target As Range) given that I would like the ensuing macro to work on all 120 of the customer tabs. Is there a way to use the workbook event change sub yet teach the sub to ignore changes on specific sheets?</SPAN>
I currently have this:</SPAN>
Private Sub Workbook_SheetChange(ByVal SH As Object, ByVal Target As Range)
If Target.Address = "$F$14" Then
Select Case Range("F14")
Case "Yes"
MsgBox "Please enter ............."
Range("G14").Locked = False
Range("G14").FormulaHidden = False
Range("G14").Activate
Case Is <> "Other"
Range("G14").Locked = False
Range("G14").ClearContents
Range("G14").Locked = True
Range("G14").FormulaHidden = False
End Select
End If
and the macro continues on much futher from there. Is there way for me to tell the sub to not run if sheets named "Grid" , "Comparison Table" , and "Group" are active?