How to force excel to continue macro if cell updated without using Application.Wait or loop

love_guy_1977

Board Regular
Joined
Aug 5, 2006
Messages
111
Dear Sir,

I need your great help to write a macro for the following:

I'm using [For each oCell in Range("A1:A200")] which representing Stock Code.

In each cell from B2 till CM2 there is a function linked to Stock Market Program (meaning to make stock prices as live in excel)

when run [For each oCell in Range("A1:A200")], I copy the base line which is in [B2:CM2] then use find function Stock Code and replace it with oCell Code.

I do it without waiting, then the excel will hang up (Stop working bez so many function to be updated. Therefore, I need a VBA to check each cell in Range(oCell.offset(0,1), oCell.offset(0,90)) if updated or not (not meain #N/A)
If updated, go to next oCell and so on

I use Application.Wait and loop but it doesn't work where these two function doesn't allow excel to update Stock Market Function

Thank you very much if help me
 

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).
Maybe

Code:
Do Until Application.CalculationState = xlDone
    DoEvents
Loop
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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