tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I've tried everything I can think of but cant get this to work, please help
Below is the code I need to add a conditionl formating rule into excel.
The problem is I cant get it to add in the forming condition I want.
basicly I want it for format currency to $
please help if you can
heres my code:
I've tried everything I can think of but cant get this to work, please help
Below is the code I need to add a conditionl formating rule into excel.
The problem is I cant get it to add in the forming condition I want.
basicly I want it for format currency to $
please help if you can
heres my code:
VBA Code:
Sub A_AAAA()
Range( _
"F6:I26,G27,I27,F29:I48,G49:G50,I49:I50,F53:I61,G62,G64,I62,M6:M26,M29:M48,W29:Z49,W6:Z26" _
).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=IF(AND($A$2=""Converted"",$A$3=""USD""),TRUE)"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
Selection.FormatConditions(1).StopIfTrue = False
End Sub