Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Cumbersome Code

The following code takes a R E A L L Y long time (90 seconds), processing around 2000 records. Is there any way to speed it up?

.Columns("Y").NumberFormat = "0"
For i = 3 To (numberofRows - 2)
If .Range("CE5") = "DIST" Then
If .Cells(5, 86).Value - .Cells(i, 25).Value 0 Then
.Cells(i, 57).Value = .Cells(5, 86).Value - .Cells(i, 25).Value
Else
End If
.Cells(i, 57).Value = 0
End If
Next

Thanks,
Jim Berglund
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
Cumbersome IF Statement Cindi Excel Discussion (Misc queries) 0 December 7th 09 09:25 PM
Iserror is too cumbersome as I use it - is there an alternative? [email protected] Excel Worksheet Functions 5 January 9th 08 11:07 PM
Non cumbersome way to hide and protect a column? [email protected] Excel Worksheet Functions 2 March 23rd 07 02:33 AM
nested IF AND too cumbersome barnabas Excel Worksheet Functions 4 January 31st 07 02:00 PM
cumbersome sheets on Word Luke Excel Worksheet Functions 2 September 24th 05 03:25 PM


All times are GMT +1. The time now is 11:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"