Coloring Alternate Rows in Excel 2003

pkelley

New Member
Joined
Mar 4, 2008
Messages
8
I'm dealing with a spreadsheet with 134,000+ rows and it's getting very hard to read across w/o jumping from line to line. Is there an easy way to color alternating rows with a different color (similar to an accounting ledger)?:confused:
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Yeah, could be a fairly straightforward macro really:

Dim r as range, r2 as range

Set r = Sheet1.range("A1")
Set r2 = Sheet1.range("A65000").end(xlup)

While r.row <= r2.row
r.entirerow.interior.colorindex = 7
Set r = r.offset(2,0)
Wend


you'll need to validate for how many rows in your version of Excel; I thought 2003 only allowed 65556 rows? Also you'll need to figure out the color you want to set the row to
 
Upvote 0
you can use conditional formatting with a formula like =(MOD(ROW(),2)=1)

My preference is to hightlight every third cell with =(MOD(ROW(),3)=1)
 
Upvote 0
Thanks for your reply. I'll give it a try. BTW, I got my numbers screwed up. The spreadsheet has 34,000 + rows; not 134,000. That's still a lot of rows for my 66 year old eyes.
 
Upvote 0
No worries, my 32 year old eyes can barely handle 100 rows at this point!
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,640
Members
449,242
Latest member
Mari_mariou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top