Conditional Formatting

  • Thread starter Thread starter ExcelMonkey
  • Start date Start date
E

ExcelMonkey

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.
 
Try:

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top