I know there must be a better way, but i can't quite get the syntax right. I'm sure the array or inlist functions must work but I can't quite figure it out. I want something where I write myTA inlist ("Division A', Division C", etc) so I don't have to have 5-10 "or myTA =...." segments of code....
Code:
if MyTA = "Division A" or myTA ="Division c" or myTA="Division D" or myTA = "Division Q" then
Sheets(myTA).Visible = False
End If
Last edited: