Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Alternating color row makes excel run very slow

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Alternating color row makes excel run very slow

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Alternating color row makes excel run very slow

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Alternating color row makes excel run very slow

Frank

In CFFormula 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
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?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Alternating color row makes excel run very slow

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 CFFormula 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
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?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Alternating color row makes excel run very slow

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
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
Formatting Alternating Rows with a Color Daren Excel Worksheet Functions 8 September 30th 08 10:19 PM
Alternating Color Rows Gator Excel Discussion (Misc queries) 1 June 18th 08 05:42 PM
Using cell color in conditional format makes Excel unstable Andrew[_24_] Excel Programming 2 November 15th 07 01:08 PM
How do I set an auto alternating row color? Daniel Stephens Excel Discussion (Misc queries) 2 July 19th 05 05:22 PM
macro or vb to alternating row color mgm[_3_] Excel Programming 5 February 13th 04 06:44 PM


All times are GMT +1. The time now is 12:40 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"