Solved

Check for conditional formatting

Posted on 2014-03-17
3
140 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

911 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

15 Experts available now in Live!

Get 1:1 Help Now