Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Conditional Format and auto filter

I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded. Often
shaded rows are together.

Is there a more flexible way so that auto filter will not affect the
shading. It looks strange when a sheet is printed.

Hank


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Conditional Format and auto filter

i think gord posted this

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


--


Gary


"HH" wrote in message
...
I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded. Often
shaded rows are together.

Is there a more flexible way so that auto filter will not affect the shading.
It looks strange when a sheet is printed.

Hank



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Conditional Format and auto filter

Thanks Gary,

I replaced your code with the one I had in conditional formating. Unless
I missed something, that code shades the entire worksheet. I'm trying keep
every other row shaded - with or without auto filter being used.

Hank
"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i think gord posted this

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


--


Gary


"HH" wrote in message
...
I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded. Often
shaded rows are together.

Is there a more flexible way so that auto filter will not affect the
shading. It looks strange when a sheet is printed.

Hank





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Conditional Format and auto filter

it was just an example

select your range and then conditional formatting.

let's say i have a5 to m170 selected
enter this as the formula
=MOD(SUBTOTAL(3,$A5:$A$170),2)=0
select your color and see if it works.

--


Gary


"HH" wrote in message
.. .
Thanks Gary,

I replaced your code with the one I had in conditional formating. Unless I
missed something, that code shades the entire worksheet. I'm trying keep
every other row shaded - with or without auto filter being used.

Hank
"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i think gord posted this

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


--


Gary


"HH" wrote in message
...
I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded. Often
shaded rows are together.

Is there a more flexible way so that auto filter will not affect the
shading. It looks strange when a sheet is printed.

Hank







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Conditional Format and auto filter

Gary,
I tried it on a new worksheet. Nothing happened.

I tried it on a work sheet with the origional formula. After using the new
formula, all rows were the same color.

If it makes a difference, I use Excel 2003, and Window XP. One computer has
Vista. I must be doing something different than you are doing. Confused!

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
it was just an example

select your range and then conditional formatting.

let's say i have a5 to m170 selected
enter this as the formula
=MOD(SUBTOTAL(3,$A5:$A$170),2)=0
select your color and see if it works.

--


Gary


"HH" wrote in message
.. .
Thanks Gary,

I replaced your code with the one I had in conditional formating.
Unless I missed something, that code shades the entire worksheet. I'm
trying keep every other row shaded - with or without auto filter being
used.

Hank
"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i think gord posted this

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


--


Gary


"HH" wrote in message
...
I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded.
Often shaded rows are together.

Is there a more flexible way so that auto filter will not affect the
shading. It looks strange when a sheet is printed.

Hank











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Conditional Format and auto filter

Select rows 1 through 200 then FormatCFFormula is:

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0

Note the position of the $ signs..........do not alter.

Pick a color and OK.


Gord Dibben MS Excel MVP

On Tue, 8 Jul 2008 19:25:39 -0500, "HH" wrote:

Gary,
I tried it on a new worksheet. Nothing happened.

I tried it on a work sheet with the origional formula. After using the new
formula, all rows were the same color.

If it makes a difference, I use Excel 2003, and Window XP. One computer has
Vista. I must be doing something different than you are doing. Confused!

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
it was just an example

select your range and then conditional formatting.

let's say i have a5 to m170 selected
enter this as the formula
=MOD(SUBTOTAL(3,$A5:$A$170),2)=0
select your color and see if it works.

--


Gary


"HH" wrote in message
.. .
Thanks Gary,

I replaced your code with the one I had in conditional formating.
Unless I missed something, that code shades the entire worksheet. I'm
trying keep every other row shaded - with or without auto filter being
used.

Hank
"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i think gord posted this

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


--


Gary


"HH" wrote in message
...
I use =MOD(ROW(),2)=1 to shade every other row in my worksheet.

When auto filter is used it will not keep every other row shaded.
Often shaded rows are together.

Is there a more flexible way so that auto filter will not affect the
shading. It looks strange when a sheet is printed.

Hank









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
Auto/conditional format willemeulen Excel Discussion (Misc queries) 0 May 6th 09 02:41 PM
DataFilterAuto Filter in excel 2007? TIJ New Users to Excel 2 November 13th 08 03:28 AM
ranging the filter cells when doing auto filter thread Excel Programming 8 April 25th 07 11:08 PM
can I use conditional format on an auto shape Horse Excel Discussion (Misc queries) 1 February 5th 07 01:44 PM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM


All times are GMT +1. The time now is 10:11 AM.

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"