PC Review


Reply
Thread Tools Rate Thread

Automatic Exchange Rates

 
 
Why Tea
Guest
Posts: n/a
 
      18th Dec 2006
Is there a way to program a worksheet to have exchanges rates
automatically updated from the Web?

/Why Tea

 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      18th Dec 2006
First of all you can go to Data>Import External Data>Import Date

Select the MS MoneyCentral Investor Rates.iqy

Dump to a new worksheet.

Data>Refresh whenever you like.

If you want a timed refresh, see Chip Peraron's site for OnTime code.

http://www.cpearson.com/excel/ontime.htm


Gord Dibben MS Excel MVP

On 18 Dec 2006 11:05:22 -0800, "Why Tea" <(E-Mail Removed)> wrote:

>Is there a way to program a worksheet to have exchanges rates
>automatically updated from the Web?
>
>/Why Tea


 
Reply With Quote
 
Why Tea
Guest
Posts: n/a
 
      18th Dec 2006

Gord Dibben wrote:
> First of all you can go to Data>Import External Data>Import Date
>
> Select the MS MoneyCentral Investor Rates.iqy
>
> Dump to a new worksheet.
>
> Data>Refresh whenever you like.


Hi Gord, thanks a lot for the answer. It's amazingly easy if you know
how.

I have two more question:
1) Can I put a refresh button in the worksheet?
2) Why isn't Euros-US exchange rate in the table?

/Why Tea

 
Reply With Quote
 
Why Tea
Guest
Posts: n/a
 
      18th Dec 2006
> Hi Gord, thanks a lot for the answer. It's amazingly easy if you know
> how.
>
> I have two more question:
> 1) Can I put a refresh button in the worksheet?
> 2) Why isn't Euros-US exchange rate in the table?


Sorry Gord, I found the Euros in the table...

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      18th Dec 2006
Copy/paste this code to a general module in the workbook.

Sub refresh_rates()
Selection.QueryTable.Refresh BackgroundQuery:=False
End Sub

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and Insert>Module. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Bring down the Forms Toolbar and select the Button tool.

Draw a button on your sheet.

Right-click and "Assign macro"

Assign the above to that button.

I don't know why there is no Euro to USD

You could search the 'net for a website with that info then create a New Query
from that site.


Gord

On 18 Dec 2006 12:41:06 -0800, "Why Tea" <(E-Mail Removed)> wrote:

>
>Gord Dibben wrote:
>> First of all you can go to Data>Import External Data>Import Date
>>
>> Select the MS MoneyCentral Investor Rates.iqy
>>
>> Dump to a new worksheet.
>>
>> Data>Refresh whenever you like.

>
>Hi Gord, thanks a lot for the answer. It's amazingly easy if you know
>how.
>
>I have two more question:
> 1) Can I put a refresh button in the worksheet?
> 2) Why isn't Euros-US exchange rate in the table?
>
>/Why Tea


 
Reply With Quote
 
Why Tea
Guest
Posts: n/a
 
      19th Dec 2006
> Copy/paste this code to a general module in the workbook.
>
> Sub refresh_rates()
> Selection.QueryTable.Refresh BackgroundQuery:=False
> End Sub
>
> If not familiar with VBA and macros, see David McRitchie's site for more on
> "getting started".


I'm not familiar with VBA, but I managed to get it to work. Thanks
Gord.

I had to put the button on the worksheet for the exchange rates. Is
there a way to put the button on the main worksheet (not on the same
worksheet as the exchange rates), which is in the same workbook?

/Why Tea

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exchange Rates =?Utf-8?B?TWljaGFlbA==?= Microsoft Excel Programming 2 22nd Jun 2007 03:04 PM
Currency exchange rates Eric Microsoft C# .NET 1 7th Dec 2006 04:09 PM
exchange rates chriske911 Microsoft Access 7 27th Apr 2006 03:10 PM
smart tag for exchange rates =?Utf-8?B?bm9ybWRyZXhlbA==?= Microsoft Excel Misc 1 26th Nov 2004 08:05 PM
Calculating Exchange rates Simon M Microsoft Access Queries 2 17th Jun 2004 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:07 PM.