Why is my conditional format offset when added by VBA?
问题 I was trying to add conditional formats like this: If expression =($G5<>"") then make set interior green, use this for $A$5:$H$25. Tried this, worked fine, as expected, then tried to adapt this as VBA-Code with following code, which is working, but not as expected: With ActiveSheet.UsedRange.Offset(1) .FormatConditions.Delete 'set used row range to green interior color, if "Erledigt Datum" is not empty With .FormatConditions.Add(Type:=xlExpression, _ Formula1:="=($" &