+ Reply to Thread
Results 1 to 5 of 5

importing external data from a website

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    Frankfurt
    MS-Off Ver
    Excel 2003
    Posts
    5

    Cool importing external data from a website

    Hi there!

    I am trying to download a csv file from a website by using the import external data function. I have created a macro that does it but I want to generalise it. In the Macro below I would like that:

    a) Instead of using ds090312fo (which stands for 12 March 2009)
    to use the previous business day, i.e. today Monday we should use
    090313 (13 March 2009)).

    b) If I leave excel open to make it automatically so that the program runs
    by itself everyday at 8.30 am.

    Does anyone have a clue? Any help on the questions would be highly appreciated. THANK YOU VERY MUCH!

    Pep

    Please Login or Register  to view this content.
    Last edited by mudraker; 03-19-2009 at 07:13 AM.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: importing external data from a website

    Hi
    Try the macro attached
    Ravi
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-16-2009
    Location
    Frankfurt
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: importing external data from a website

    Hi RaviShankar,
    Thank you very much for your quick reply.

    I have however a small problem when running the macro. If I .try to debug I go to the line:

    Please Login or Register  to view this content.
    which is the problem I was always getting. Do you happen to know whether this is a problem on the macro itself or in the settings?

    I tried in different PCs but it did not work either.

    Thanks a lot!

    Ppg
    Last edited by mudraker; 03-19-2009 at 07:14 AM.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: importing external data from a website

    ppg

    Please take a couple of minutes and read ALL theForum Rules then wrap your VBA code (Rule 3)

    Please make sure you wrap your VBA code in both of your postings in this thread
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  5. #5
    Registered User
    Join Date
    03-16-2009
    Location
    Frankfurt
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: importing external data from a website

    Hi RaviShankar,

    Thank you very much for your quick reply. Here below is the Macro that you sent me:


    Please Login or Register  to view this content.
    I have however a small problem when running the macro. When I run it the macro

    crashes and if I try to debug it goes directly to the line below:

    Refresh BackgroundQuery:=False

    which is the problem I was always getting. Do you happen to know whether this is a problem on the macro itself or in the settings?

    I tried in different PCs but it did not work either.

    Thanks a lot!

    Ppg
    Last edited by mudraker; 03-19-2009 at 07:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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