Macro to Show Conditional Formatting Criteria

  • Thread starter Thread starter Paul Black
  • Start date Start date
P

Paul Black

Hi Everyone,

Does anyone have a Macro that will List Cell References that have
Conditional Formatting along with the Conditional Formatting Formulas,
Colour, Font, Borders etc.

Thanks in Advance
All the Best
Paul
 
Dim rng as Range
Dim cell as Range
Dim cond as FormatCondition
On Error Resume Next
set rng = Cells.SpecialCells(xlCellTypeAllFormatConditions)
On Error goto 0
if not rng is nothing then
for each cell in rng
for each cond in cell.FormatConditions


next
Next
End if



you can get the rest of the information from the FormatConditions Object.
look in excel VBA help for details
 
Thanks Tom,

I will have a look at it over the weekend and try to figure out the
rest in order to get it to list the required information.
Thanks again.

All the Best
Paul
 

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