+ Reply to Thread
Results 1 to 5 of 5

Update Data feeds through macro

  1. #1
    Forum Contributor
    Join Date
    03-09-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    128

    Update Data feeds through macro

    I've made a macro that pulls out the data of the data feed sheets (from an external website). And stores them in a seperate sheet.

    However I need to make sure that the external data feed is updated before the macro is run. How can I do this?

    A second issue is auto running the macro once a day... Do I need to open or keep the excel sheet open for the macro to run at set intervals? Or can I get the macro to run without having to open Excel or the spesific spreadsheet/workbook?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Update Data feeds through macro

    What sort of data feed is it, how is it currently run? Does it use Get External Data from the data menu?

    The macro can be timed but it would really need the workbook to be opened.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    03-09-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Update Data feeds through macro

    Yeah it used Get External Data from Website/table

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Update Data feeds through macro

    Something like this will refresh the query table
    Please Login or Register  to view this content.
    You can run your code automatically using the OnTime method which a search of the Forum should produce many examples.

    You would need windows scheduler or something to automatically open the worksheet.

  5. #5
    Forum Contributor
    Join Date
    03-09-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Update Data feeds through macro

    Is there a way to pause the macro running until the QueryTable.Refresh is finished?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1