Sub ZeilenEinfaerben()
Dim Start As Long
Dim Ende As Long
Dim Lcol As Integer
Dim Farbe As Integer
Dim i As Long
Start = Application.InputBox("Wo soll das Einfärben beginnen?", _
"Start", Type:=1)
Ende = Application.InputBox("Wo soll das Einfärben" _
& " enden werden?", "Ende", Type:=1)
Lcol = Application.InputBox("Wieviele Spalten" _
& " sollen eingefärbt werden?", _
"Breite in Spalten", Type:=1)
Farbe = Application.InputBox("Welche Farbe soll " _
& "verwendet werden?", "Farbe", Type:=1)
For i = Start To Ende Step 2
Range(Cells(i, 1), Cells(i, Lcol)) _
.Interior.ColorIndex = Farbe
Next
End Sub Sub Zeilen_färben()
Application.ScreenUpdating = False
Range("A3:C43,E3:G43").Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=REST(ZEILE();2)=0"
Selection.FormatConditions(1).Interior.ColorIndex = 36
Range("A1").Select
Application.ScreenUpdating = True
End Sub
IrfanView - Farben ändern eines Bildes
ana 04.07.2008 - 2619 Hits -
Makro
kurtl 10.11.2008 - 77 Hits - 14 Antworten
Makro im Makro deaktivieren ?
korfuweb 02.03.2009 - 179 Hits - 7 Antworten
Makro
Pietro 13.03.2009 - 196 Hits - 1 Antwort