LindseyAlden
New Member
- Joined
- May 29, 2019
- Messages
- 1
Hi - I am working on a VBA to hide and unhide tabs in a single work book. I have a drop that consists of "Low", "Medium", "High", "Major".
With the "Low" choice, I want to hide tabs "Key", "Stakeholder Interest Influence", "Stakeholder Mgmt Plan", "Risk Mgmt Plan", and "Quality Mgmt Plan".
With "Medium" choice, I want to hide tabs "Key", "Stakeholder Interest Influence", "Risk Mgmt Plan", and "Quality Mgmt Plan".
With "High" choice, I want to hide tabs "Key" and "Stakeholder Interest Influence"
With "Major" choice, I want to hide tabs "Key"
With no choice, I just want tabs "Key" hidden
Currently, I have the following:
Private Sub Worksheet_Change(ByVal Target As Range)
If [Level_of_effort] = "Low" Then
Sheets("Key").Visible = False
Sheets("Stakeholder Interest Influence").Visible = False
Sheets("Stakeholder Mgmt Plan").Visible = False
Sheets("Risk Mgmt Plan").Visible = False
Sheets("Quality Mgmt Plan").Visible = False
Else
Sheets("Key").Visible = False
Sheets("Stakeholder Interest Influence").Visible = True
Sheets("Stakeholder Mgmt Plan").Visible = True
Sheets("Risk Mgmt Plan").Visible = True
Sheets("Quality Mgmt Plan").Visible = True
End If
This works for the Low option, but I can't seem to string the Medium, High, and Major in there. Any help is Super appreciated!
With the "Low" choice, I want to hide tabs "Key", "Stakeholder Interest Influence", "Stakeholder Mgmt Plan", "Risk Mgmt Plan", and "Quality Mgmt Plan".
With "Medium" choice, I want to hide tabs "Key", "Stakeholder Interest Influence", "Risk Mgmt Plan", and "Quality Mgmt Plan".
With "High" choice, I want to hide tabs "Key" and "Stakeholder Interest Influence"
With "Major" choice, I want to hide tabs "Key"
With no choice, I just want tabs "Key" hidden
Currently, I have the following:
Private Sub Worksheet_Change(ByVal Target As Range)
If [Level_of_effort] = "Low" Then
Sheets("Key").Visible = False
Sheets("Stakeholder Interest Influence").Visible = False
Sheets("Stakeholder Mgmt Plan").Visible = False
Sheets("Risk Mgmt Plan").Visible = False
Sheets("Quality Mgmt Plan").Visible = False
Else
Sheets("Key").Visible = False
Sheets("Stakeholder Interest Influence").Visible = True
Sheets("Stakeholder Mgmt Plan").Visible = True
Sheets("Risk Mgmt Plan").Visible = True
Sheets("Quality Mgmt Plan").Visible = True
End If
This works for the Low option, but I can't seem to string the Medium, High, and Major in there. Any help is Super appreciated!