Hallo,
stehe wieder einmal vor einem kleinen Problem.
Ich möchte ein Makro nur ausführen, wenn das aktuelle PC Datum ein "Freitag" ist.
hat von euch jemand eine Idee ?
Danke
LG
Georg
Hallo,
If WeekDay(Date)6 then exit sub
Gruß
Rudi Eine Kuh macht Muh, viele Kühe machen Mühe
AW: Makro ausführen wenn bestimmter Wochentag
15.03.2007 09:07:00
Matthias
Hallo Georg,
als erste Zeile deiner Prozedur:
If Weekday(date,vbMonday)5 Then Exit Sub
Gruß Matthias
AW: Makro ausführen wenn bestimmter Wochentag
15.03.2007 09:10:00
Georg
Hallo,
Danke.
So hab ich das gemacht nur das "5" fehlt bei mir. Für was steht das ?
GE
AW: Makro ausführen wenn bestimmter Wochentag
15.03.2007 09:12:00
Matthias
Hallo Georg,
schau mal in der Excel-Hilfe.
mit Argument (..., vbMonday) ist 1=Montag, 2=Dienstag usw.
ohne Argument (siehe AW von Rudi) ist 1=Sonntag, 2=Montag usw.
Gruß Matthias