VBA while calculating

MarkCBB

Active Member
Joined
Apr 12, 2010
Messages
497
HI there VBA pros,

I am not too sure this is possible.

I have a very simple code that updates some databases with formulas. I turn the calculation type onto manual in the beginning of the code and then run the actual code, and then turn the calculation back to automatic and the end of the code.

Due the the amount of formulas that are being updated, this takes a very long time to complete. Is there a way I can have the statusbar show the progress of the calculations in percentage to completion?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,
you could use the progressbar to monitor how its going. I have read somewhere a way to use the status bar but can not find it again (sorry).

does the code use a loop do process the functions?
 
Upvote 0
Hi there,

@bensonsearch, nope no loops in the code.

@Fassa, yup, all formulas are now working faster, the challenge is that the database is very big and is still growing. The only way I an think of adding a more visual display of the time that is needed for the calculations to complete is have a progress bar run at the same time as the calculation of the formulas but on a timer and I will just have to guess the time. but I am not sure how to approach or implement this. any tips?
 
Upvote 0
No, I don't know, Mark.

With a database type set up, perhaps though the formulas can be replaced - for example with UPDATE queries. Removing the formulas (totally) would really help, if possible.
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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