Hi, I have a VBA script which is to run a formula from another sheets cell so as to conditionally format cells on another sheet however the script was written in excel 2007 and i am restricted to excel 2003.
Because of this i'm getting the runtime error 935 which i'm told is down to the compatability issue beteween the 2 versions of excel. I know there are work arounds but i am not a VBA expert. Can anyone help? Thanks
Because of this i'm getting the runtime error 935 which i'm told is down to the compatability issue beteween the 2 versions of excel. I know there are work arounds but i am not a VBA expert. Can anyone help? Thanks
Code:
Sub SetConditional()</SPAN>
With Selection</SPAN>
.FormatConditions.Add Type:=xlExpression, Formula1:=ActiveWorkbook.Sheets("Sheet1").Range("A1").Formula</SPAN>
.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority</SPAN>
With .FormatConditions(1).Interior</SPAN>
.Pattern = xlSolid</SPAN>
.PatternColorIndex = xlAutomatic</SPAN>
.ColorIndex = xlAutomatic</SPAN>
End With</SPAN>
.FormatConditions(1).StopIfTrue = False</SPAN>
End With</SPAN>
End Sub</SPAN>