+ Reply to Thread
Results 1 to 4 of 4

Currency conversion

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    63

    Currency conversion

    Hi all,
    I'm trying to create a currency converter that uses the data from the website of my country's national bank. The good thing is that they provide a direct .xls download of their latest exchange rates, meaning I have a link.

    So what I want to do is have my macro automatically download that table to a preset location on my hard drive, open the file, copy the table to the active workbook, close the file and delete it.

    Those seem like pretty simple operations but since I'm relatively new to VBA, I'll be glad if someone can provide me with some assistance.

    Many thanks
    Nick

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Simple currency conversion

    Hi,

    The best way to learn is for you to turn on your macro recorder ...
    and go through all your steps ...

    You will then visualize how the whole process has been coded in VBA ...

    HTH

  3. #3
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Simple currency conversion

    Quote Originally Posted by JeanRage View Post
    Hi,

    The best way to learn is for you to turn on your macro recorder ...
    and go through all your steps ...

    You will then visualize how the whole process has been coded in VBA ...

    HTH
    Hm, I've been using it for quite a while but I thought downloading would require a bit more programming skill. Turns out it doesn't, at least not for this simple task. Thanks, using the recorder worked great!

  4. #4
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Simple currency conversion

    Hi,
    In my opinion using web query will be easier, instead of downloading xls file. You can import data from the web-page.
    Based on the information that you are in Berlin, I assume you are using ECB rates and they also provide xml file. So you can use something like this macro:

    Please Login or Register  to view this content.
    The macro above is very basic and you can changed it to fit your needs better.

    Buran
    If you are pleased with a member's answer then use the Star icon to rate it.

+ 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