Excel VBA Macro With Time Pause for Add-in

mbabla

New Member
Joined
Sep 10, 2014
Messages
4
Hi,

1> I have an Excel Macro that involves copying a bunch of formulas into many cells based on an Add-in. (i.e., Copy $A$2 to $A$3:$A$100, then $A$2 to $A$101:$A$200, etc.). I have to run these sequentially as otherwise the application runs out of memory (RAM is not the issue here).
2> The add-in pulls data from the internet.
3> The problem I have is that the VBA Macro runs without finishing the calculation/ download resulting from the add-in, from the first paste range to the next, next, etc. - so I end up with just NA/VALUE/not downloaded messages.
4> I added pause functionality with Application.Wait, but that does not work well either.
5> Does anyone have a suggestion what may work better here?
Thanks in advance for your consideration and help.

Best,

Bob
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can you not test the content of the cells before running the code? So check if N/A/VALUE present then don't run code - put a while loop in which will exit when all data is downloaded.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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