Hi All
I have a major problem. I have several excel worksheets which pulls in data from a master. Some of the information doesn't fall within the criteria so I hide it with a macro. When I open the work book the sheet that I am on automatically triggers the macro. The problem i have is that the other sheets do not automatically update the same way, so If I was looking at another sheet I would manually have to implement the macro. Any ideas on how I can get all the macros to run on all worksheets when opening the workbook? Any help would be appreciated. I have detailed the exact macro I use if helpful below (its basically: unhide everything, then hide row a if=false)
Private Sub Workbook_Open()
Dim c As Range, rng
Set rng = Range("a:a")
Cells.Select
Selection.EntireColumn.Hidden = False
Selection.EntireRow.Hidden = False
For Each c In rng
If c.Value = "False" Then
c.EntireRow.Hidden = True
End If
Next c
End Sub
I have a major problem. I have several excel worksheets which pulls in data from a master. Some of the information doesn't fall within the criteria so I hide it with a macro. When I open the work book the sheet that I am on automatically triggers the macro. The problem i have is that the other sheets do not automatically update the same way, so If I was looking at another sheet I would manually have to implement the macro. Any ideas on how I can get all the macros to run on all worksheets when opening the workbook? Any help would be appreciated. I have detailed the exact macro I use if helpful below (its basically: unhide everything, then hide row a if=false)
Private Sub Workbook_Open()
Dim c As Range, rng
Set rng = Range("a:a")
Cells.Select
Selection.EntireColumn.Hidden = False
Selection.EntireRow.Hidden = False
For Each c In rng
If c.Value = "False" Then
c.EntireRow.Hidden = True
End If
Next c
End Sub