Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
304to308
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
304to308
304to308
Aktuelles Verzeichnis
Verzeichnis Index
Verzeichnis Index
Übersicht Verzeichnisse
Inhaltsverzeichnis

Fehler im VBA Code

Fehler im VBA Code
08.09.2003 15:14:45
Roddel
Hallo,

ich bekomme für die Zeile:
xlAnw.Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, _
Formula1:="=HEUTE()+36524"

die Fehlermeldung: Ungültiger Prozeduraufruf

Kann jemand den Fehler entdecken?

Gesamter Code:

Set xlAnw = CreateObject("excel.application")
xlAnw.Visible = True ' läuft unsichtbar im Hintergrund
xlAnw.Workbooks.Open FileName:=excelname
xlAnw.Columns("L:L").Select
xlAnw.Selection.FormatConditions.Delete
xlAnw.Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, _
Formula1:="=HEUTE()+36524"
With xlAnw.Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
.ColorIndex = 3
End With
xlAnw.Selection.FormatConditions(1).Interior.ColorIndex = 6
xlAnw.Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, _
Formula1:="74876"
xlAnw.Selection.FormatConditions(2).Interior.ColorIndex = 6
Set xlAnw = Nothing

1
Beitrag zum Forumthread
Beitrag zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: Fehler im VBA Code
09.09.2003 23:03:26
Jörg Gradert
Hallo Roddel,
muss es in VBA nicht Formula1:="=TODAY()+36524" heissen?
Ich habe wenig Ahnung.

Gruss Jörg

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige