ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Formatting (https://www.excelbanter.com/excel-programming/324932-conditional-formatting.html)

ExcelMonkey[_190_]

Conditional Formatting
 
Is it possible to tell whether a an excel range has
conditional formatting applied to it from VBA? That is,
can I pass a range to a function which states in boolean
(true/false) whether the range is conditionally formatted?

Thanks.

AA2e72E

Conditional Formatting
 
Try:

0=Range("B1:B9").FormatConditions.Count

If TRUE, the range has conditional formatting, if FALSE, it does not

"ExcelMonkey" wrote:

Is it possible to tell whether a an excel range has
conditional formatting applied to it from VBA? That is,
can I pass a range to a function which states in boolean
(true/false) whether the range is conditionally formatted?

Thanks.



All times are GMT +1. The time now is 06:02 AM.

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