Sub CF_Var() ' ' Macro1 Macro ' Dim Lastrow As String Lastrow = CStr(wksht.Cells(2, "C").End(xlDown).Row) Range("F2").Select ActiveCell.FormulaR1C1 = "10000" Range("G2").Select ActiveCell.FormulaR1C1 = "0.1" Range("G2").Select Selection.NumberFormat = "0.00%" With Selection.Font .Name = "Century Gothic" .FontStyle = "Bold" .Size = 14 End With Range("F2").Select With Selection.Font .Name = "Century Gothic" .FontStyle = "Bold" .Size = 14 End With 'IF left(c27,5) = "Total") start with c2 and check to last row. 'NEED LOGIC HERE to check all rows for TOTAL 'Version TWO check if column B is a number Rows("12:12").Select Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _ "=OR(AND(ABS($F27)>$F$2,ABS($G27)>$G$2),AND(ABS($J27)>$F$2,ABS($K27)>$G$2),AND(ABS($O27)>$F$2,ABS($P27)>$G$2))" Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority With Selection.FormatConditions(1).Interior .PatternColorIndex = xlAutomatic .Color = 65535 .TintAndShade = 0 End With End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE