Can anybody who is good @ VBA for writing macros in excel help me out??
I wrote a macro myself, it basically does the following:
1) replace numbers
2) autofill the data to a range
3) compare data
then loop restart from 1) again..
The macro loops approx. 1500 times each time I run it...
My question is, why does it always start out soooo fast, but slows GREATLY after around 200??? Even if I interrupt the macro and restart the macro again, it's still slow..
In order to let the macro run fast again, I have to like close the excel, re-open it, re-run the macro again to get the fasttest speed.. however, it starts to slow down again after around 200... any idea why??
I'm pretty sure it's not because of the windows memory resource, because if I open another excel window (which will take more windows resource) and run the macro in another window at the same time, it is still very fast (but will slow down later on too)..
is it because that excel saves some temp info as the macro is run??? if so, can i clear it to make it faster???
I added a line of
"set wSheet = nothing", but didn't seem to help...
any idea? experts??
I wrote a macro myself, it basically does the following:
1) replace numbers
2) autofill the data to a range
3) compare data
then loop restart from 1) again..
The macro loops approx. 1500 times each time I run it...
My question is, why does it always start out soooo fast, but slows GREATLY after around 200??? Even if I interrupt the macro and restart the macro again, it's still slow..
In order to let the macro run fast again, I have to like close the excel, re-open it, re-run the macro again to get the fasttest speed.. however, it starts to slow down again after around 200... any idea why??
I'm pretty sure it's not because of the windows memory resource, because if I open another excel window (which will take more windows resource) and run the macro in another window at the same time, it is still very fast (but will slow down later on too)..
is it because that excel saves some temp info as the macro is run??? if so, can i clear it to make it faster???
I added a line of
"set wSheet = nothing", but didn't seem to help...
any idea? experts??