bed. Form. in ZS
28.02.2014 00:58:29
Franz
ich möchte in einen Bereich zwei bed. Formatierungen per VBA im ZS-System eingeben. Die Formeln sind recht einfach,d rum hab ich sie auch fast hinbekommen. 1 Problem krieg ich aber nicht hin, und zwar wie ich die Spalte um eine zurückzählen kann, wie in diesem Ausdruck:
=MONAT(B$29)>MONAT(A$29)
ich hab das bisher, es geht um die 1. Bedingung:
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=MONAT(Z" & 29 & "S)>MONAT(Z" & 29 & "S" & -1 & ")"
With .FormatConditions(1).Borders(xlLeft)
.LineStyle = xlContinuous
.Weight = xlHairline
.ColorIndex = xlAutomatic
End With
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=UND(ZS="""";Z" & eins & "S="""";Z" & zwei & "S="""")"
.FormatConditions(2).Interior.Pattern = xlNone
Könnt Ihr mir da bitte helfen? Ich hoffe ich habe genug gepostet.
Vielen Dank schonmal und Grüße
Franz