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
Anzeige