1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| Private Sub Btn_Template_Click()
Dim Wks As Worksheet
Dim cbx As CheckBox
Application.DisplayAlerts = False
Application.ScreenUpdating = False
If cbx_FRA = True Then
wks_FRA.Visible = xlSheetVisible
Sheets("Comments_ACTUAL_FRA").Select
Else
wks_FRA.Visible = xlSheetVeryHidden
End If
If cbx_ITA = True Then
wks_ITA.Visible = xlSheetVisible
Sheets("Comments_ACTUAL_ITA").Select
Else
wks_ITA.Visible = xlSheetVeryHidden
End If
If cbx_GBR = True Then
wks_GBR.Visible = xlSheetVisible
Sheets("Comments_ACTUAL_GBR").Select
Else
wks_GBR.Visible = xlSheetVeryHidden
End If
If cbx_DEU = True Then
wks_DEU.Visible = xlSheetVisible
Sheets("Comments_ACTUAL_DEU").Select
Else
wks_DEU.Visible = xlSheetVeryHidden
End If
If cbx_NLD = True Then
wks_NLD.Visible = xlSheetVisible
Sheets("Comments_ACTUAL_NLD").Select
Else
wks_NLD.Visible = xlSheetVeryHidden
End If
Application.DisplayAlerts = True
End Sub |
Partager