Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Alright, we all know how conditional formatting works. Code: -------------------- Range("F113:F127").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=($D130=5)" Selection.FormatConditions(1).Interior.ColorIndex = 50 -------------------- That's an example of what I want. Doing that; The Collumn "D" stays the same; but the row increases incrementally. How would I code something exactly like conditional formatting in VBA? Where it is able to use all of the excel formulas and everything. Why I want to know -- I'm using some conditional formatting, but I need more than the 3 built in choices. Thanks ~Ryan -- Zlord ------------------------------------------------------------------------ Zlord's Profile: http://www.excelforum.com/member.php...o&userid=27519 View this thread: http://www.excelforum.com/showthread...hreadid=489279 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I convert conditional formatting into explicit formatting? | Excel Discussion (Misc queries) | |||
Formatting Conditional Formatting Icon Sets | Excel Discussion (Misc queries) | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions |