Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
BWR BWR is offline
external usenet poster
 
Posts: 2
Default color lines in a spreadsheet

Hello, In Excel '07 I want to stagger the color of lines in a spreadsheet -
one grey, then one white. I can do this manually, but when I go to sort the
lines (say change them alphebetically) the color lines change with the
alphabetization. I want the color lines to stay staggered when I sort the
data. I want the staggred colorlines o remain the same and only change the
data.

Staggering the lines maks it easier for employees to read and follow the
correct line.

Please help?!?!?!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default color lines in a spreadsheet

Do the sort first. then add the formatting last.



"BWR" wrote in message
...
Hello, In Excel '07 I want to stagger the color of lines in a
spreadsheet -
one grey, then one white. I can do this manually, but when I go to sort
the
lines (say change them alphebetically) the color lines change with the
alphabetization. I want the color lines to stay staggered when I sort the
data. I want the staggred colorlines o remain the same and only change
the
data.

Staggering the lines maks it easier for employees to read and follow the
correct line.

Please help?!?!?!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default color lines in a spreadsheet

Select rows 1:200 or whatever you want the range to be.

In Conditional FormattingNew Rule enter this in "use a formula"

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

Pick a gray color and OK

Will survive through sorting and filtering.


Gord Dibben MS Excel MVP


On Sat, 7 Nov 2009 07:08:06 -0800, BWR
wrote:

Hello, In Excel '07 I want to stagger the color of lines in a spreadsheet -
one grey, then one white. I can do this manually, but when I go to sort the
lines (say change them alphebetically) the color lines change with the
alphabetization. I want the color lines to stay staggered when I sort the
data. I want the staggred colorlines o remain the same and only change the
data.

Staggering the lines maks it easier for employees to read and follow the
correct line.

Please help?!?!?!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default color lines in a spreadsheet

hi
perhaps you could use conditional formating instead. see this site.
http://www.cpearson.com/excel/banding.aspx
the above site colors cells but it would be easy to color lines instead of
cells.
chip has another page you might would to look at
http://www.cpearson.com/excel/rowliner.htm

perhaps one of the above will solve your problem.

Regards
FSt1
"BWR" wrote:

Hello, In Excel '07 I want to stagger the color of lines in a spreadsheet -
one grey, then one white. I can do this manually, but when I go to sort the
lines (say change them alphebetically) the color lines change with the
alphabetization. I want the color lines to stay staggered when I sort the
data. I want the staggred colorlines o remain the same and only change the
data.

Staggering the lines maks it easier for employees to read and follow the
correct line.

Please help?!?!?!

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
Two color fill between two lines chi_town_eric Charts and Charting in Excel 8 December 3rd 08 02:37 PM
lines in a spreadsheet akinard Excel Discussion (Misc queries) 4 June 28th 06 03:56 PM
Color lines of a combobox Brotha lee Excel Programming 1 May 19th 05 08:10 PM
color of comment lines in vba R.VENKATARAMAN Excel Programming 3 November 20th 04 02:23 AM
macro that counts lines with certain color Philipp Oberleitner Excel Programming 2 June 15th 04 02:48 PM


All times are GMT +1. The time now is 12:38 PM.

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"