PC Review


Reply
Thread Tools Rate Thread

Clearing Rules from worksheests

 
 
John A
Guest
Posts: n/a
 
      5th Nov 2008
I'm looking for a macro to clear rules from all my worksheets of a workbook.
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      5th Nov 2008
What do you mean by "rules"
If you mean gridlines, there are two ways
1) In Tools | Options | you can uncheck the Gridlines box
OR
2) Use a fill (white will do) on all cells

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"John A" <John (E-Mail Removed)> wrote in message
news:27DF3230-57B9-4F09-867C-(E-Mail Removed)...
> I'm looking for a macro to clear rules from all my worksheets of a
> workbook.



 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      5th Nov 2008
Sub grdlns()
For i = 1 To ThisWorkbook.Sheets.Count
Sheets(i).Activate
ActiveWindow.DisplayGridlines = False
Next
End Sub

"John A" wrote:

> I'm looking for a macro to clear rules from all my worksheets of a workbook.

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      6th Nov 2008
Are you running Excel 2007 and do you mean Conditional Formatting "Rules"?

If so, I probably can't help..........I don't use 2007.

A couple other responders interpreted "rules" to mean gridlines.

Just wanted to clarify what you're looking for.

In 2003 you could use a macro like this.

Assumes all sheets have some CF so no error checking.

Sub clear_CF()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Cells.SpecialCells(xlCellTypeAllFormatConditions) _
.FormatConditions.Delete
Next ws
End Sub


Gord Dibben MS Excel MVP

On Wed, 5 Nov 2008 14:36:01 -0800, John A <John (E-Mail Removed)>
wrote:

>I'm looking for a macro to clear rules from all my worksheets of a workbook.


 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      6th Nov 2008
I think we lost the OP on this one Gord. I interpreted his post like Bernard
since he said he wanted to clear all rules from all worksheets, it seemed he
meant gridlines. I didn't even think about CF criteria as rules.

"Gord Dibben" wrote:

> Are you running Excel 2007 and do you mean Conditional Formatting "Rules"?
>
> If so, I probably can't help..........I don't use 2007.
>
> A couple other responders interpreted "rules" to mean gridlines.
>
> Just wanted to clarify what you're looking for.
>
> In 2003 you could use a macro like this.
>
> Assumes all sheets have some CF so no error checking.
>
> Sub clear_CF()
> Dim ws As Worksheet
> For Each ws In ThisWorkbook.Worksheets
> ws.Cells.SpecialCells(xlCellTypeAllFormatConditions) _
> .FormatConditions.Delete
> Next ws
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Wed, 5 Nov 2008 14:36:01 -0800, John A <John (E-Mail Removed)>
> wrote:
>
> >I'm looking for a macro to clear rules from all my worksheets of a workbook.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cells without clearing formulas marsjune68 Microsoft Excel Misc 2 10th Apr 2009 07:39 PM
Clearing all rules in Outlook mail Karen McCorkle Thompson Microsoft Outlook Discussion 2 26th Oct 2008 01:10 PM
how to retrieve mail color categories after clearing using rules? Shadow Microsoft Outlook Discussion 2 20th May 2008 04:54 PM
Rules not clearing the message flag d d Microsoft Outlook 2 16th Aug 2006 09:20 PM
Clearing the New Message Flag for Junk Mail, Rules Wizard =?Utf-8?B?cnNwaWV0?= Microsoft Outlook Discussion 0 23rd May 2005 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:09 PM.