MSN Money Central macro timing question

tmerritt

New Member
Joined
Feb 26, 2010
Messages
13
I just recorded a quick macro to make some formating changes and refresh a feed I have set up from MSN Money Central. As a part of this I am copying values coming in from the feed and pasting them into a log I am keeping of historical values.

The problem I am having is when I run the macro, it copies the data in the cells BEFORE the values have been updated to the new values. the data does eventually update (1-3 seconds AFTER it had been copied). Essentially the macro is running so fast that it doesnt give the connection time to update itself before it finishes. for the record, I DID record it so that the refresh of values happens before the copy, so i know that is not the problem!

is there a way to force excel to pause as a part of the macro, or to ensure that the values have changed before copying them?

Thanks for the help!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Are you retrieving the data with a web query? If so, try BackgroundQuery:=False on the query's Refresh method.
 
Upvote 0
I am getting the data using the default MSN Money Central tool that comes stock in excel. all i do to update it is hit the "refresh all" button under the data tab. with my MINIMAL knowledge of VBA i believe the coding for this is ' ActiveWorkbook.RefreshAll '
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

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