Hallo Leute,
Ich brauche eure Hilfe.
Wenn beim folgendem Code eine leere Zelle, in der abzufragenden Spalte erscheint, stopp das Makro.
Was habe ich da falsch gemacht?
Sub Monat()
Dim Datum As Date
Dim Zeile As Long
Dim MediName As String
Application.ScreenUpdating = False
Zeile = 2
Do Until IsEmpty(Cells(Zeile, 6))
Datum = Cells(Zeile, 6)
With Range(Cells(Zeile, 1), Cells(Zeile, 6))
.Interior.ColorIndex = xlNone
If Month(Day(Datum) & "." & Month(Datum) & "." & Year(Date)) = Month(Now) Then
.Interior.ColorIndex = 40
End If
End With
Zeile = Zeile + 1
Loop
Application.ScreenUpdating = True
End Sub
Einstweilen herzlichen Dank an alle, die sich für mich bemühen.
MfG
Odje