Conditional hide rows in multiple sheets
Solved/Closed
issa
-
25 Apr 2010 à 13:32
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 25 Apr 2010 à 20:22
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 25 Apr 2010 à 20:22
Related:
- Conditional hide rows in multiple sheets
- Google sheets download - Download - Spreadsheets
- Steam hide comments - Guide
- Potplayer hide controls - Guide
- Ip hide platinum - Download - VPN
- Quicktime hide controls - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
25 Apr 2010 à 20:22
25 Apr 2010 à 20:22
Open the VBE
click on you master sheet
and paste this code
click on you master sheet
and paste this code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim bHide As Boolean
If Target.Column <> 2 Then Exit Sub
bHide = True
If (CStr(Target) <> "0") Then bHide = False
For Each Sheet In Sheets
If Sheet.Name = ActiveSheet.Name Then GoTo Next_Sheet
Sheets(Sheet.Name).Rows(Target.Row).Hidden = bHide
Next_Sheet:
Next
End Sub