Hi Guys,
I tried searching for this but am not what function/feature it may be referred to.
I'm trying to do something similar to below but I can't seem to find the correct syntax to get it working. Very new to VBA so still finding my way around it.
What I'm tyring to do is change the format with the below VBA script but want to loop changing my formula in the condition similar to this when we enter data
"=Calculations!$I$2 on first cell then Calculations!$I$3 and so forth"
Thanks!
I tried searching for this but am not what function/feature it may be referred to.
I'm trying to do something similar to below but I can't seem to find the correct syntax to get it working. Very new to VBA so still finding my way around it.
What I'm tyring to do is change the format with the below VBA script but want to loop changing my formula in the condition similar to this when we enter data
"=Calculations!$I$2 on first cell then Calculations!$I$3 and so forth"
Sub CondFormat()'
Dim col As Integer
col = 6
For i = 13 To 50
Cells(i, col).Select
Selection.FormatConditions.add Type:=xlExpression, Formula1:= "=Calculations!$I$2)"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.799981688894314
End With
Selection.FormatConditions(1).StopIfTrue = False
Next i
End Sub
Thanks!
