Know When A Group of Functions Are Done

kd623

New Member
Joined
Jul 26, 2018
Messages
7
Hello,
Is there a way for me to know when a group of function calls are done running?
For example if I have a function MyFunc(), is there a way to know when all the calls are done (not each individual call), wither I call it 10 times, 20 times, 50 times etc.

Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Right, but how can I know when the last call is?
If I code the message box into the function itself then after every call it will print a box. What I am looking for is after x amount of function calls, 1 box is called.
 
Upvote 0
I don't fully follow, so I will provide more context.
I'm writing an add in that makes http requests with data from the user's cells. To make it faster, I am going to batch the data.
Therefore if the user calls the function 10 times, I need to know when those 10 calls are done so I can batch up the data from those 10 function calls.
If they call it 50 times, I need a way to know when those 50 calls are done so I can batch up the data from the 50.

I am unsure how to achieve that flexibility by setting a counter
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top