puh, ok probiere ich mal
[autoit]$sFilePath1 = @ScriptDir & "\Skripte\Start\" & $fileallgemein ; Pfad festlegen
$oExcel =_ExcelBookOpen ($sFilePath1, $fVisible = 1) ; Tabelle öffnen
$Zeilenanzahlab = $oExcel.ActiveSheet.Cells($oExcel.Rows.Count, 1).End(-4162).Row ; -4162 = xlUp ; Zeilenende feststellen
$oExcel.Rows("9:" &$Zeilenanzahlab).Select ; Bereich makieren der bearbeitet werden soll
$oExcel.Selection.FormatConditions.Delete
$oExcel.Selection.FormatConditions.Add.Type = 2 ; Typ2 ist bei Bedingter Formatierung = Format ist
$oExcel.Formula1 = "=REST(TEILERGEBNIS(3;$A$9:$A9);2)=0" ; die Formel die mir jede zweite Zeile andersfarbig hinterlegt
$oExcel.Selection.FormatConditions(1).Interior.ColorIndex = 34 ; die Farbe in der jede zweite Zeile eingefärbt werden soll
In Excel : Format >> Bedingte Formatierung >> Formel ist >> "=REST(TEILERGEBNIS(3;$A$9:$A9);2)=0" >> Format >> Muster >> Farbe wählen.
mfg
oh-ha