Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can't update the data from internet while running macro


I try to get the data from internet , and want to save it from time to
time , my work sheet is set to update the data when re-opening. But
when I use macro to open it , it will not update the date . How can I
solve this problem ??


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can't update the data from internet while running macro

Use the refresh method command in your macro to update?

--
Regards,
Tom Ogilvy

"wilson" wrote in message
...

I try to get the data from internet , and want to save it from time to
time , my work sheet is set to update the data when re-opening. But
when I use macro to open it , it will not update the date . How can I
solve this problem ??


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can't update the data from internet while running macro


I have use the "refresh" but the data can't update before the macro copy
the cell


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can't update the data from internet while running macro

You need to set the Backgroundquery property to false - then your macro will
wait for the refresh to complete.

From help for Refresh method:

expression.Refresh(BackgroundQuery)


--
Regards,
Tom Ogilvy


"wilson" wrote in message
...

I have use the "refresh" but the data can't update before the macro copy
the cell


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
update data from internet willemeulen[_34_] Excel Worksheet Functions 2 June 8th 09 02:28 PM
HOW CAN I UPDATE DATA FROM INTERNET WITHOUT RUNNING MACRO lookup Excel Discussion (Misc queries) 2 April 23rd 08 10:15 PM
Running Internet Explorer from Excel Wojciech G. Charts and Charting in Excel 3 August 19th 05 02:50 PM
Excel files on local drives running from internet FillyFriend Excel Worksheet Functions 0 November 22nd 04 09:23 PM
VBA update data from Internet Explorer and copy to Excel? Mauricio Harger Excel Programming 1 August 18th 03 09:26 PM


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"