Jeg har i den fil der linkes til nederst "Commented out this block of code", hvorefter det for mig ser ud til at virke.
'Private Sub Worksheet_SelectionChange(ByVal Target As Range)
' If Selection.Count = 1 Then
' If Not Intersect(Target, Range("k2:k154")) Is Nothing Then
' Range("y16").Value = Target.Offset(0, -10).Value
'
'
' Target.Value = "S"
' End If
'
' 'Call Send_mail
'
' If Not Intersect(Target, Range("l2:l154")) Is Nothing Then
' Range("aa16").Value = Target.Offset(0, -11).Value
'
'
' Target.Value = "G"
' End If
' End If
'
' ' Call Send_mail1
'
'End Sub
https://www.dropbox.com/scl/fi/6c5yvnb00j8tbmm37thdp/Kalender-hoffet-r-efter-r_2.xlsm?rlkey=6ixt0bd48qsgt52arwogo5zzn&st=cwnidewo&dl=0