ich habe in einer Excelfile folgendes Marko.
Ich habe das damals hier über das Forum bekommen.
Wie kann ich das nun ändern, dass nicht nur spalte 4 sondern auch Spalte 5 bearbeitet wird?
Danke und Gruss
Benjamin
Sub NurText()
Dim lngRow As Long
For lngRow = 1 To Cells(Rows.Count, 4).End(xlUp).Row
If Not IsEmpty(Cells(lngRow, 4)) Then
If IsDate(Cells(lngRow, 4)) Then
Cells(lngRow, 4) = Format(Cells(lngRow, 4), "DD.MM.YY")
End If
End If
Next
End Sub