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

VBA-Formulierung

Forumthread: VBA-Formulierung

VBA-Formulierung
12.04.2003 12:17:28
Franz W.
Hallo Forum,

ich möchte folgendes abfragen:

Wenn der Monat der Datumszelle (t - 2, m) größer als 2 ist, also

If Month von cells(t - 2, m) > 2

Wie muss ich das richtig schreiben? Könnt Ihr mir da bitte helfen?

Danke schon mal im Voraus

Gruß
Franz


Anzeige

7
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
If Month(ActiveCell.Value) > 2 Then o.T.
12.04.2003 12:26:37
GerhardW



If Month(ActiveCell.Value) > 2 Then o.T.
12.04.2003 12:26:37
GerhardW



Re: VBA-Formulierung
12.04.2003 12:27:15
andre

hallo franz,
war fast richtig ;-)
If Month(Cells(t - 2, m)) > 2 Then
voraussetzung: dort muss auch ein datum stehen
gruss andre

Anzeige
So geht's. Danke Andre! ot
12.04.2003 12:38:57
Franz W.



So geht's. Danke Andre! ot
12.04.2003 12:38:58
Franz W.



So geht's. Danke Andre! ot
12.04.2003 12:38:58
Franz W.



Anzeige
Re: If Month(ActiveCell.Value) > 2 Then o.T.
12.04.2003 12:40:53
Franz W.

Hallo Gerhard,

danke für Deine Antwort. Aber ActiveCell geht nicht, weil ich nicht in der abzufragenden Zelle bin. Aber der Tipp von Andre klappt.

Vielen Dank und Gruß
Franz


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