Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("B:B")) Is Nothing Then
Calender.Hide
if intersect(target, Range("D:D")) Is nothing then
' do nothing
Else
userform1.show False
End If
Else
Calender.Show False
End If
End Sub
|