PC Review


Reply
Thread Tools Rate Thread

Alternating every other row different colors

 
 
MICHELLE1
Guest
Posts: n/a
 
      24th May 2007
I have a very large spreadsheet created in Excel. I am trying to alternate
every other row grren and then Pink. However, I can't seem to figure out how
to do it other then doing it by each individual row. Is there a way to do
this by highlighting what I need to alternate and plugging in the colors and
it do it for me so I do not have to do it individually? If you could help me
with this it would be greatly appreciated. Thank you...!

 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      24th May 2007
See

http://cpearson.com/excel/banding.htm


In article <72a85bb595048@uwe>, "MICHELLE1" <u34488@uwe> wrote:

> I have a very large spreadsheet created in Excel. I am trying to alternate
> every other row grren and then Pink. However, I can't seem to figure out how
> to do it other then doing it by each individual row. Is there a way to do
> this by highlighting what I need to alternate and plugging in the colors and
> it do it for me so I do not have to do it individually? If you could help me
> with this it would be greatly appreciated. Thank you...!

 
Reply With Quote
 
Sebation.G
Guest
Posts: n/a
 
      24th May 2007
u can use the codtional formatting.
1 set the worksheet backgroud color :green
2 use the conditional formatting
formula:"=mod(row(),2)=0"
the backgroud color set pink

--
Regards,

Sebation.G

"MICHELLE1" <u34488@uwe> 写入消息新闻:72a85bb595048@uwe...
>I have a very large spreadsheet created in Excel. I am trying to alternate
> every other row grren and then Pink. However, I can't seem to figure out
> how
> to do it other then doing it by each individual row. Is there a way to do
> this by highlighting what I need to alternate and plugging in the colors
> and
> it do it for me so I do not have to do it individually? If you could help
> me
> with this it would be greatly appreciated. Thank you...!
>



 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      24th May 2007
You can use conditional formating or use a VBA macro. Lots of people will
respond with conditional formating. here is VBA code

Sub Color_Pink_GREEN()
'

'
Const EndColumn As String = "F"
Const EndRow As Integer = 94
Const StartColumn As String = "A"
Const StartRow As Integer = 3

Const SHADEPINK As Integer = 7
Const SHADEGREEN As Integer = 10

Dim RowOffsetCount As Integer

For RowCount = StartRow To EndRow

Range(StartColumn + CStr(RowCount) + ":" + _
EndColumn + CStr(RowCount)).Select

With Selection.Interior
Select Case (RowCount Mod 2)

Case 0
.ColorIndex = SHADEPINK
.Pattern = xlSolid
Case 1
.ColorIndex = SHADEGREEN
.Pattern = xlSolid
End Select

End With


Next RowCount

End Sub

"MICHELLE1" wrote:

> I have a very large spreadsheet created in Excel. I am trying to alternate
> every other row grren and then Pink. However, I can't seem to figure out how
> to do it other then doing it by each individual row. Is there a way to do
> this by highlighting what I need to alternate and plugging in the colors and
> it do it for me so I do not have to do it individually? If you could help me
> with this it would be greatly appreciated. Thank you...!
>
>

 
Reply With Quote
 
MICHELLE1
Guest
Posts: n/a
 
      24th May 2007
Thank you, thank you, thank you!! It worked!!!!!!!

Sebation.G wrote:
>u can use the codtional formatting.
>1 set the worksheet backgroud color :green
>2 use the conditional formatting
> formula:"=mod(row(),2)=0"
> the backgroud color set pink
>
>>I have a very large spreadsheet created in Excel. I am trying to alternate
>> every other row grren and then Pink. However, I can't seem to figure out

>[quoted text clipped - 5 lines]
>> me
>> with this it would be greatly appreciated. Thank you...!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternating Row Colors Bisro Solan Microsoft Access 1 23rd Apr 2009 03:25 PM
alternating colors =?Utf-8?B?Ym9iYmxlaGVhZDg2?= Microsoft Excel Worksheet Functions 1 26th Jun 2007 03:16 PM
Alternating Lines using colors =?Utf-8?B?Sm9zZV9Nb250ZXNfSnI=?= Microsoft Access 5 24th Feb 2005 09:56 AM
Alternating Line Colors Burt Microsoft Access 3 23rd Feb 2005 02:18 PM
Alternating colors for rows =?Utf-8?B?anA=?= Microsoft Excel Misc 1 28th Dec 2004 09:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 AM.