Live-Forum - Die aktuellen Beiträge
Datum
Titel
17.10.2025 10:28:49
16.10.2025 17:40:39
Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Format Zelle Rechtsanordnung

Forumthread: Format Zelle Rechtsanordnung

Format Zelle Rechtsanordnung
11.09.2003 15: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 15: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 15:31:41
benji
Danke!!
Anzeige
;

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Entdecke mehr
Finde genau, was du suchst

Die erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden

Suche nach den besten Antworten
Unsere beliebtesten Threads

Entdecke unsere meistgeklickten Beiträge in der Google Suche

Top 100 Threads jetzt ansehen
Anzeige