Sub ZZChiudi()
Dim FoglioW
Dim IndSh
Dim NavSh
Dim ActB
Dim Hyper_W
Set ActB = ActiveWorkbook
Set IndSh = ActB.Sheets("Indice")
Set NavSh = ActB.Sheets("Navigazione")
IndSh.Visible = True
NavSh.Visible = True
For Each FoglioW In ActB.Sheets
With FoglioW
If .Visible And .Name <> IndSh.Name And .Name <> NavSh.Name Then
For Each Hyper_W In .Hyperlinks
Hyper_W.Range.Select
If Not (Hyper_W.Range.Text = "INDICE" Or Hyper_W.Range.Text = "IRES") Then
Hyper_W.Range.Interior.Pattern = xlNone
End If
Next Hyper_W
.Range("B:B").EntireColumn.Hidden = True
.Visible = False
With .Tab
.ThemeColor = xlThemeColorDark1
.TintAndShade = -9.99786370433668E-02
End With
End If
End With
Next FoglioW
End Sub |