Kan jeg bruge en anden kommando for at gøre koden hurtigere? Evt SELECT CASE??
Sub Headcount()If Not Selection.Value = "MANDAG" Xor Selection.Value = "TIRSDAG" Xor Selection.Value = "ONSDAG" Xor Selection.Value = "TORSDAG" Xor Selection.Value = "FREDAG" Xor Selection.Value = "LØRDAG" Xor Selection.Value = "SØNDAG" Then
Exit Sub
Call nytark
Else
If Selection.Value = "MANDAG" Then
Call Mandag
Else
If Selection.Value = "TIRSDAG" Then
Call Tirsdag
Else
If Selection.Value = "ONSDAG" Then
Call Onsdag
Else
If Selection.Value = "TORSDAG" Then
Call Torsdag
Else
If Selection.Value = "FREDAG" Then
Call Fredag
Else
If Selection.Value = "LØRDAG" Then
Call Lørdag
Else
If Selection.Value = "SØNDAG" Then
Call Søndag
End If
End If
End If
End If
End If
End If
End If
End If
Worksheets("Headcount").Activate
Call SkjulRk
Columns("D:S").EntireColumn.Hidden = False
End Sub
