Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Conditional Formatting

Is it possible to check all VISIBLE rows on all VISIBLE sheets in a file to
see if there any cells with conditional formatting in them.

I use cond. formatting as follows:

Formula Is =H7="" and a color would be applied to the cell if it was blank
(34). I want to check all visible sheets and visible rows in those sheets
for any empty cells with this cond. format.

Hope this makes sense.

Your help much appreciated as usual.

Gareth



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Conditional Formatting

You could just add a helper column that tests the same condition as the CF,
and this will show TRUE or FALSE. If filtered, it only shows visible cells
anyway.

--

HTH

RP

"Gareth" wrote in message
...
Is it possible to check all VISIBLE rows on all VISIBLE sheets in a file

to
see if there any cells with conditional formatting in them.

I use cond. formatting as follows:

Formula Is =H7="" and a color would be applied to the cell if it was blank
(34). I want to check all visible sheets and visible rows in those sheets
for any empty cells with this cond. format.

Hope this makes sense.

Your help much appreciated as usual.

Gareth





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Conditional Formatting

I searched on Conditional formatting, and there was a post from 2004 which
seems to answer your question


Sub Tester02()
Dim Rng As Range
Dim myCount As Long

On Error Resume Next
Set Rng = Columns("A:IV").SpecialCells _
(xlCellTypeAllFormatConditions)
On Error GoTo 0

If Not Rng Is Nothing Then
myCount = Rng.Count
Else
myCount = 0
End If
MsgBox myCount

End Sub

I forgot who originally posted it (so please note this is not my code, and
credit should go yto the person who originally wrote it), but it is very very
fast.

If you need to find out where the CF is, then you can amend it to search
through the sheets as you want.

HTH
--
Alan Hutchins


"Gareth" wrote:

Is it possible to check all VISIBLE rows on all VISIBLE sheets in a file to
see if there any cells with conditional formatting in them.

I use cond. formatting as follows:

Formula Is =H7="" and a color would be applied to the cell if it was blank
(34). I want to check all visible sheets and visible rows in those sheets
for any empty cells with this cond. format.

Hope this makes sense.

Your help much appreciated as usual.

Gareth




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Conditional Formatting

From Help:

To find all cells that have conditional formatting (conditional format:
A format, such as cell shading or font color, that Excel automatically
applies to cells if a specified condition is true.), click any cell.
To find cells that have conditional formatting settings identical to
the settings of a specific cell, click the specific cell.

On the Edit menu, click Go To.
Click Special.
Click Conditional formats.
Do one of the following:
To find cells with any conditional formatting, click All below Data
validation.

To find cells with identical conditional formats, click Same below Data
validation.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"