Solved

Check for conditional formatting

Posted on 2014-03-17
3
139 Views
Last Modified: 2014-03-17
Folks,
Is there a way to check to see if conditional formatting is being applied to a worksheet using VBA
0
Comment
Question by:Frank Freese
3 Comments
 
LVL 7

Expert Comment

by:COACHMAN99
ID: 39935729
0
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 39935730
This code will tell you if there's some conditional formatting, not what or where it is on the sheet:
Sub testformat()

If ActiveSheet.Cells.FormatConditions.Count > 0 Then
    MsgBox "conditional formatting"
Else
    MsgBox "nope"
End If
End Sub

Open in new window

0
 

Author Closing Comment

by:Frank Freese
ID: 39935790
that nailed it
thank you
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now