Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How would I get every third row to be a specific background color?

How would I make a simple macro script that would make every third row
color of my choosing, as in rows 3, 6, 9, etc.

Is there an easy way to do such a simple task

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How would I get every third row to be a specific background color?

Use Conditional Formatting with a formula of

=MOD(ROW(),3=0)

and set the pattern colour to suit

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"LordJezo " wrote in message
...
How would I make a simple macro script that would make every third row a
color of my choosing, as in rows 3, 6, 9, etc.

Is there an easy way to do such a simple task?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default How would I get every third row to be a specific background color?

Hi

i would do it using conditional formatting - select range
choose format / conditional formatting
choose formula is
enter =MOD(ROW(),3)=0
in the white box
click on format
go to patterns tab
choose colour
ok out of dialog

Cheers
JulieD

"LordJezo " wrote in message
...
How would I make a simple macro script that would make every third row a
color of my choosing, as in rows 3, 6, 9, etc.

Is there an easy way to do such a simple task?


---
Message posted from http://www.ExcelForum.com/



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
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
Count cells in range w/specific background color? Michael[_3_] Excel Worksheet Functions 3 November 8th 08 05:51 AM
Background color according to a specific cell value One-Leg Excel Discussion (Misc queries) 6 July 21st 08 05:13 PM
how to count cells with specific format (background color)? Blackheartedowl Excel Discussion (Misc queries) 1 February 8th 06 08:21 AM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM


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

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

About Us

"It's about Microsoft Excel"