wie kann ich ein Makro schreiben, das in jeder Zelle der Spalte A die letzte Ziffer wegschneidet oder die Zelle auf acht Zeichen kürzt.
Danke
Sub Peter()
Dim c As Range
Dim laR As Long
laR = Cells(Rows.Count, 1).End(xlUp).Row
For Each c In Range("A1:A" & laR)
If Len(c.Text) > 8 Then
c.Value = Left(c.Text, 8)
End If
Next c
End Sub
Sub Dirk()
Dim c As Range
Dim laR As Long
laR = Cells(Rows.Count, 1).End(xlUp).Row
For Each c In Range("A1:A" & laR)
If IsNumeric(c.Text) Then
c.Value = WorksheetFunction.RoundDown(c.Value, 7)
End If
Next c
End Sub