Hi i've adapted the code below for a range of cells im tring to format.
Basically if the cell in column J's row is filled in fro A?:J? are to be filled.
I'm getting an error '1004' Method'Range' of object'_Global' Failed?
Any ideas ?
Basically if the cell in column J's row is filled in fro A?:J? are to be filled.
I'm getting an error '1004' Method'Range' of object'_Global' Failed?
Any ideas ?
Code:
myrange = Range("A3:J" & Range("A2").End(xlDown).Row)
With Range(myrange).FormatConditions.Add( _
Type:=xlExpression, _
Formula1:="=IF($J3<>"",TRUE,FALSE)")
.Interior.Color = RGB(153, 204, 0)
End With