jlabrecque
New Member
- Joined
- Nov 7, 2018
- Messages
- 14
Hi,
So I am trying to hide and show tabs based on different values
I have a cover page, and on that cover page, I have four items listed we will call them (A, B, C, D). If "Yes" is next to A I want it to show tab A. If no is next to tab A, I want it to hide tab A. Then so on for B, C, D. I am having a bit of trouble separating the four different questions. Can someone please assist me with this. Below is what I have so far.
Note: I want the A, B, C, D questions to be completely independent of one another
Private Sub Worksheet_Change(ByVal Target As Range)
If [Tax_acct] = "Yes" Then
Sheets("Tax Account").Visible = True
Else
Sheets("Tax Account").Visible = False
End If
End Sub
So I am trying to hide and show tabs based on different values
I have a cover page, and on that cover page, I have four items listed we will call them (A, B, C, D). If "Yes" is next to A I want it to show tab A. If no is next to tab A, I want it to hide tab A. Then so on for B, C, D. I am having a bit of trouble separating the four different questions. Can someone please assist me with this. Below is what I have so far.
Note: I want the A, B, C, D questions to be completely independent of one another
Private Sub Worksheet_Change(ByVal Target As Range)
If [Tax_acct] = "Yes" Then
Sheets("Tax Account").Visible = True
Else
Sheets("Tax Account").Visible = False
End If
End Sub