Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 122
Default Change even rows to a predefined colour

I want to run code that will change even numbered rows to a predefined
colour in the range 10:100

Any suggestions?

thank you
Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Change even rows to a predefined colour

Pat,

Take a look at http://www.xldynamic.com/source/xld.CF.html#rows

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Pat" wrote in message
...
I want to run code that will change even numbered rows to a predefined
colour in the range 10:100

Any suggestions?

thank you
Pat




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 422
Default Change even rows to a predefined colour

Click in the row-header of Row 10. The entire Row (10) should be selected.
At the Menu, Click on Format, Conditional Formatting;
At drop down select FormulaIS and in the box put in:
=IF(MOD(ROW(),2)=0,TRUE) - then select your color, and then OK out.
Your Row 10 should change immediately to the desired color.
Now Click again in the Row Header of Row 10;
At the Menu Click on the Format-Painter (the Paint-Brush Icon) then
left click and hold down on the row header of Row 11 and drag down the
Row header Column to Row 100 and let go of your Mouse;
Done
HTH



"Pat" wrote in message
...
I want to run code that will change even numbered rows to a predefined
colour in the range 10:100

Any suggestions?

thank you
Pat




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Change even rows to a predefined colour

Hi Jim,

You don't need to do an IF test. CF only wants a TRUE or FALSE to determine
whether to set the format, and the expression

=MOD(ROW(),2)=0

returns TRUE or FALSE, so that is sufficient.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JMay" wrote in message
news:VcKZd.86693$%U2.35857@lakeread01...
Click in the row-header of Row 10. The entire Row (10) should be selected.
At the Menu, Click on Format, Conditional Formatting;
At drop down select FormulaIS and in the box put in:
=IF(MOD(ROW(),2)=0,TRUE) - then select your color, and then OK out.
Your Row 10 should change immediately to the desired color.
Now Click again in the Row Header of Row 10;
At the Menu Click on the Format-Painter (the Paint-Brush Icon) then
left click and hold down on the row header of Row 11 and drag down the
Row header Column to Row 100 and let go of your Mouse;
Done
HTH



"Pat" wrote in message
...
I want to run code that will change even numbered rows to a predefined
colour in the range 10:100

Any suggestions?

thank you
Pat






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Change even rows to a predefined colour

Yeah, Thanks Bob
Hopefully I can remember that TRUTH.
Jim

"Bob Phillips" wrote in message
...
Hi Jim,

You don't need to do an IF test. CF only wants a TRUE or FALSE to

determine
whether to set the format, and the expression

=MOD(ROW(),2)=0

returns TRUE or FALSE, so that is sufficient.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JMay" wrote in message
news:VcKZd.86693$%U2.35857@lakeread01...
Click in the row-header of Row 10. The entire Row (10) should be

selected.
At the Menu, Click on Format, Conditional Formatting;
At drop down select FormulaIS and in the box put in:
=IF(MOD(ROW(),2)=0,TRUE) - then select your color, and then OK out.
Your Row 10 should change immediately to the desired color.
Now Click again in the Row Header of Row 10;
At the Menu Click on the Format-Painter (the Paint-Brush Icon) then
left click and hold down on the row header of Row 11 and drag down the
Row header Column to Row 100 and let go of your Mouse;
Done
HTH



"Pat" wrote in message
...
I want to run code that will change even numbered rows to a predefined
colour in the range 10:100

Any suggestions?

thank you
Pat










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
Change colour of rows in a worksheet VJ Sharma[_2_] Excel Discussion (Misc queries) 1 May 13th 09 11:14 AM
How can I change the predefined headers and footers in Excel? KJ Tate Excel Discussion (Misc queries) 2 December 24th 08 04:48 PM
Change colour of cells when content is altered/changed BUT NOT TO INSERTED OR DELETED ROWS Martin ©¿©¬ @nohere.net Excel Discussion (Misc queries) 3 April 12th 08 05:13 PM
Creating a new worksheet using predefined rows Aaron Excel Worksheet Functions 2 March 28th 07 02:16 AM
Formula to change rows a different colour? John Excel Worksheet Functions 2 August 10th 05 11:56 PM


All times are GMT +1. The time now is 04:35 AM.

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"