Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

Format Zelle Rechtsanordnung

Forumthread: Format Zelle Rechtsanordnung

Format Zelle Rechtsanordnung
11.09.2003 17:06:31
Benji
Habe folgende Abfrage:

If max = "01/01/1999" Then
.Cells(q, 48).FormatConditions.Delete
.Cells(q, 48) = " Kein Datum "
Else
.Cells(q, 48).NumberFormat = "dd/mm/yyy"
.Cells(q, 48) = max
End If

Was muss im if-Block ergänzt werden, wenn ich " Kein Datum " zentriert in der Zelle haben will?!

Gruß...
Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: Format Zelle Rechtsanordnung
11.09.2003 17:13:53
Ramses
Hallo

If max = "01/01/1999" Then
.Cells(q, 48).FormatConditions.Delete
.Cells(q, 48) = " Kein Datum "
.Cells(q, 48).HorizontalAlignment = xlCenter
Else
.Cells(q, 48).NumberFormat = "dd/mm/yyy"
.Cells(q, 48) = max
End If

Gruss Rainer
AW: Format Zelle Rechtsanordnung
11.09.2003 17:31:41
benji
Danke!!
Anzeige
Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18