Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook with a table of currency exchange rates shown below.
How can I write a function or macro that can extract the latest or average exchange rate from the internet and place it in the cells that have "val"? I think the term I've heard of is "Scraping" but that aspect of vba is new to me. I was thinking the easiest way would be to create a string and send it to Google Search because if I put "Convert 1 USD to EUR" in the search bar, it gives the me exchange rate. Currency EUR USD JPY Baht EUR 1.00 USD USD val 1.00 JPY JPY val val 1.00 Baht Baht val val val 1.00 Thanks! MikeZz |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Send your email to me and I will send you a workbook using an external query
to http://finance.yahoo.com/currency/co...submit=Convert or establish the query using the above and this macro assigned to a button/shape You will need defined names for [amount] 100, [to] usd, & [from] jpy Sub ConvertCurrency() With Sheets("Sheet1").QueryTables(1) .Connection = _ "URL;http://finance.yahoo.com/currency/convert?amt=" _ & [amount] & "&from=" & [from] & "&to=" & [to] & "&submit=Convert" .Refresh BackgroundQuery:=False End With End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MikeZz" wrote in message ... I have a workbook with a table of currency exchange rates shown below. How can I write a function or macro that can extract the latest or average exchange rate from the internet and place it in the cells that have "val"? I think the term I've heard of is "Scraping" but that aspect of vba is new to me. I was thinking the easiest way would be to create a string and send it to Google Search because if I put "Convert 1 USD to EUR" in the search bar, it gives the me exchange rate. Currency EUR USD JPY Baht EUR 1.00 USD USD val 1.00 JPY JPY val val 1.00 Baht Baht val val val 1.00 Thanks! MikeZz |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Default display format for "currency" data type | Excel Discussion (Misc queries) | |||
Formating numbers &"Text" to appear as currency &"Text" in formula | Excel Discussion (Misc queries) | |||
In Excel a cell formatted "currency" shows "######" help! | Excel Worksheet Functions | |||
Changing format of column from "general" to "currency" | Excel Programming |