|
-
Sep 13th, 2005, 02:42 AM
#1
Thread Starter
Junior Member
Running macro slowly
Hello,
please can You help me ?
How I can to reduce running of some actual macro code ?
Thank You
Radovan Zigraj
-
Sep 13th, 2005, 04:01 AM
#2
Re: Running macro slowly
Optimise it?
You'd have to look online for optimisation trick depending on your db.
Indexes on fields? (slows input slightly but allows faster returning of records).
When you say Macro .. do you mean vba code? Or Access Macro?
Perhaps it is the amount of data or the way that you have it structured?
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Sep 13th, 2005, 04:06 AM
#3
Thread Starter
Junior Member
Re: Running macro slowly
Sorry,
I mean macro code in VBA in MS Excel.
-
Sep 13th, 2005, 04:17 AM
#4
Re: Running macro slowly
What are you doing at the moment in excel?
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Sep 13th, 2005, 05:17 AM
#5
Re: Running macro slowly
There are a few ways you can try to slow down the code..
1. Sleep function to pause execution
2. Empty Loops (Not the best method)
3. Loop until a certain condition is true.. (the best and most efficient method)
It will depend on what you are trying to do, so if you could post why you need to slow it down we might be able to give some further information
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 13th, 2005, 05:29 AM
#6
Re: Running macro slowly
uhh dnany ... I believe they want to make it run faster (reduce time) ....
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Sep 13th, 2005, 05:37 AM
#7
Re: Running macro slowly
Hmm,, the title states running it slowly..
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 13th, 2005, 05:40 AM
#8
Thread Starter
Junior Member
Re: Running macro slowly
My macro code is reading on one sheet row per row and evaluating condition ( if ).
If this condition is true than macro is going to copy this row and put on another sheet and again activated prevous sheet.
How I can be sure that were processed all rows ?
-
Sep 13th, 2005, 06:10 AM
#9
Re: Running macro slowly
Ok so now I'm really are you trying to speed up, slow down or validate the process??
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Sep 13th, 2005, 10:23 AM
#10
Re: Running macro slowly
Can you post your code, so that we can review it?
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|