ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA Conditional formatting (https://www.excelbanter.com/excel-programming/313148-vba-conditional-formatting.html)

Steven E.

VBA Conditional formatting
 

I can change the conditional formats of cells with the
FormatConditions Object. But is it possible to get the conditional
formats from a cell in Excel to show them in VBA?


--
Steven E.
------------------------------------------------------------------------
Steven E.'s Profile: http://www.excelforum.com/member.php...o&userid=15123
View this thread: http://www.excelforum.com/showthread...hreadid=268130


Tom Ogilvy

VBA Conditional formatting
 
? activeCell.FormatConditions(1).Formula1
5000
? activeCell.FormatConditions(1).Formula1
5000
? activeCell.FormatConditions(1).Operator
1

But See Chip Pearson's page on Conditional Formatting Colors

The code there will show you how to interpret the formulas.

http://www.cpearson.com/excel/CFColors.htm

--
Regards,
Tom Ogilvy

"Steven E." wrote in message
...

I can change the conditional formats of cells with the
FormatConditions Object. But is it possible to get the conditional
formats from a cell in Excel to show them in VBA?


--
Steven E.
------------------------------------------------------------------------
Steven E.'s Profile:

http://www.excelforum.com/member.php...o&userid=15123
View this thread: http://www.excelforum.com/showthread...hreadid=268130





All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com