Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As is, this code takes about 38 seconds to process just over 1 million rows.. Maybe that ain't too bad but I see GS, Claus, Isabelle et. al., speak of "...dumping into an array and when finished dumping back to the sheet..." or words to that affect to speed up processing a great deal.
I give myself credit to be smart enough to ask the question and bear full responsibility for being too dumb to be able to do it. Here I'm taking a string (happens to be a set of digits) from MID and comparing with an equal length string of digits from RIGHT for a true or false return. Option Explicit Sub tester() Dim c As Range Application.ScreenUpdating = False 'c.Offset(0, 8) = "'" & Mid$(c, 8, 13) 'c.Offset(0, 9) = "'" & Right$(c, 13) For Each c In Range("E1:E" & Range("E" & Rows.Count).End(xlUp).Row) If Mid$(c, 8, 13) = Right$(c, 13) Then c.Offset(0, 7).Value = "TRUE" Else c.Offset(0, 7).Value = "FALSE" End If Application.ScreenUpdating = True Next End Sub Thanks. Howard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array takes 6x longer to process VLOOKUP than worksheet table does | Excel Programming | |||
Macro suddenly stops mid process through an array | Excel Programming | |||
How do I create a process sheet? | Excel Discussion (Misc queries) | |||
Extract all CN='Name' from a Active Directory data-dumped-cell | Excel Programming | |||
Chart is being dumped into the wrong sheet | Excel Programming |