I have a macro that was taking about 15 seconds to run that is now taking over half an hour (without making any changes)...it's a shared network/server but I've tried it at various times during the day.
This is one of the parts it is now taking forever in:
(It has to read in about 20,000 lines)
Do you have any idea why this would be taking forever now when it didn't used to?
Thanks,
Alex
This is one of the parts it is now taking forever in:
Code:
k = 1
Seek #1, 1
Do While Not EOF(1)
Line Input #1, Data
Worksheets("Template").Cells(k, 1) = Mid(Data, 1, 155)
Worksheets("Template").Cells(k, 2) = Mid(Data, 156, 19)
Worksheets("Template").Cells(k, 3) = Mid(Data, 175, 61)
k = k + 1
Loop
(It has to read in about 20,000 lines)
Do you have any idea why this would be taking forever now when it didn't used to?
Thanks,
Alex