PC Review


Reply
Thread Tools Rate Thread

Alternating color row makes excel run very slow

 
 
Frank Situmorang
Guest
Posts: n/a
 
      28th Nov 2007
Hellos,

I have worksheet which contains data almost 35 000 rows. To facilitate easy
reading I want to make alternating color rows. But his will affect vefry
solow in performance.

Can anyone help me how can we make alternating rows, but still running normal?

Thanks for any idea provided.

Frank

--
H. Frank Situmorang
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      28th Nov 2007
Check this site:

http://office.microsoft.com/en-us/ex...CL100570551033

"Frank Situmorang" wrote:

> Hellos,
>
> I have worksheet which contains data almost 35 000 rows. To facilitate easy
> reading I want to make alternating color rows. But his will affect vefry
> solow in performance.
>
> Can anyone help me how can we make alternating rows, but still running normal?
>
> Thanks for any idea provided.
>
> Frank
>
> --
> H. Frank Situmorang

 
Reply With Quote
 
Frank Situmorang
Guest
Posts: n/a
 
      28th Nov 2007
Thanks JLGWhiz for your help. When I filter it it won't have alternating
color again, could you tell me how can we make it?

--
H. Frank Situmorang


"JLGWhiz" wrote:

> Check this site:
>
> http://office.microsoft.com/en-us/ex...CL100570551033
>
> "Frank Situmorang" wrote:
>
> > Hellos,
> >
> > I have worksheet which contains data almost 35 000 rows. To facilitate easy
> > reading I want to make alternating color rows. But his will affect vefry
> > solow in performance.
> >
> > Can anyone help me how can we make alternating rows, but still running normal?
> >
> > Thanks for any idea provided.
> >
> > Frank
> >
> > --
> > H. Frank Situmorang

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      28th Nov 2007
Frank

In CF>Formula is: enter the following.

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0 Format to a nice color.

This will retain the row formatting throughout sorting or filtering.


Gord Dibben MS Excel MVP

On Tue, 27 Nov 2007 20:28:01 -0800, Frank Situmorang <(E-Mail Removed)>
wrote:

>Thanks JLGWhiz for your help. When I filter it it won't have alternating
>color again, could you tell me how can we make it?


 
Reply With Quote
 
Frank Situmorang
Guest
Posts: n/a
 
      28th Nov 2007
Gord:

My problem is when i create this alternating color, the program is running
very slow when I perform filtering for 35000 rows

Any idea to make it faster??

--
H. Frank Situmorang


"Gord Dibben" wrote:

> Frank
>
> In CF>Formula is: enter the following.
>
> =MOD(SUBTOTAL(3,$A1:$A$2),2)=0 Format to a nice color.
>
> This will retain the row formatting throughout sorting or filtering.
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 27 Nov 2007 20:28:01 -0800, Frank Situmorang <(E-Mail Removed)>
> wrote:
>
> >Thanks JLGWhiz for your help. When I filter it it won't have alternating
> >color again, could you tell me how can we make it?

>
>

 
Reply With Quote
 
Les Stout
Guest
Posts: n/a
 
      28th Nov 2007
Hi Frank,
I use the code below very succesfully.

Sub ColorWhenValueChange()
'
'The xlsweetspot guy would would do it this way.
Dim strActiveAddress As String 'Use this to track single cell
position
Application.ScreenUpdating = False
ActiveCell.Offset(2, 0).Select
Do While Len(ActiveCell.Value) <> 0 ' This will run until a row
isblank.
strActiveAddress = ActiveCell.Address
' Compare the values in the current cell with the one above
If ActiveCell.Value = ActiveCell.Offset(-1, 0).Value Then
ActiveCell.EntireRow.Offset(-1, 0).Copy
ActiveCell.EntireRow.PasteSpecial xlPasteFormats
Else
If ActiveCell.Offset(-1, 0).Interior.ColorIndex = xlNone Then
ActiveCell.EntireRow.Interior.Color = RGB(255, 255, 153) '36
< - Change colour value here
Else
ActiveCell.EntireRow.Interior.ColorIndex = xlNone
End If
End If
Range(strActiveAddress).Select
ActiveCell.Offset(1, 0).Select
Loop
End sub

Best regards,

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
 
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
Using cell color in conditional format makes Excel unstable Andrew Microsoft Excel Programming 2 15th Nov 2007 01:08 PM
Alternating Color Detail Back Color =?Utf-8?B?SmF5?= Microsoft Access Form Coding 5 30th Oct 2006 04:10 PM
alternating color Candor Feg Microsoft Access Reports 2 8th Jun 2005 08:15 PM
Alternating row color =?Utf-8?B?QmVu?= Microsoft Excel Misc 3 20th Apr 2004 01:37 PM
Alternating row color in VB Mike Microsoft Dot NET Compact Framework 3 12th Mar 2004 07:37 PM


Features
 

Advertising
 

Newsgroups
 


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