Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Not able select list value in HTML

Hi Team,

I am trying execute below macro for getting Currency exchange amount
using www.oanda.com. I am not able to select Input Currency and Output
Currency..

Any ideas?

Sub CurrencyConverter()
Dim IE As InternetExplorer
Dim Base_Currency As String
Dim Quote_Currency As String


Set IE = New InternetExplorer
IE.Visible = True
IE.Navigate "http://www.oanda.com/currency/converter/"

Do While IE.ReadyState < READYSTATE_COMPLETE Or IE.Busy = True
DoEvents
Loop

Base_Currency = "EUR"
IE.Document.getElementById("quote_currency_input") .Value =
Base_Currency 'Not working - Actual currency quote is not getting
selected


Quote_Currency = "USD"

IE.Document.getElementById("base_currency_input"). Value =
Quote_Currency 'Not working - Actual currency quote is not getting
selected

IE.Document.getElementById("quote_amount_input").V alue = 100
IE.Document.getElementById("flipper").Click
Final_Amount = IE.Document.getElementById("base_amount_input").Va lue

MsgBox 100 & Base_Currency & "= " & Final_Amount & Quote_Currency

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Not able select list value in HTML


Try this url. I can send a file using an external query. dguillett1
@gmail.com
www.gocurrency.com




On Sep 29, 4:11*am, Raghu wrote:
Hi Team,

I am trying execute below macro for getting Currency exchange amount
usingwww.oanda.com. I am not able to select Input Currency and Output
Currency..

Any ideas?

Sub CurrencyConverter()
Dim IE As InternetExplorer
Dim Base_Currency As String
Dim Quote_Currency As String

Set IE = New InternetExplorer
IE.Visible = True
IE.Navigate "http://www.oanda.com/currency/converter/"

Do While IE.ReadyState < READYSTATE_COMPLETE Or IE.Busy = True
* * DoEvents
Loop

Base_Currency = "EUR"
IE.Document.getElementById("quote_currency_input") .Value =
Base_Currency 'Not working - Actual currency *quote is not getting
selected

Quote_Currency = "USD"

IE.Document.getElementById("base_currency_input"). Value =
Quote_Currency 'Not working - Actual currency *quote is not getting
selected

IE.Document.getElementById("quote_amount_input").V alue = 100
IE.Document.getElementById("flipper").Click
Final_Amount = IE.Document.getElementById("base_amount_input").Va lue

MsgBox 100 & Base_Currency & "= " & Final_Amount & Quote_Currency

End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Not able select list value in HTML

Change the block

Do While IE.ReadyState < READYSTATE_COMPLETE Or IE.Busy = True
DoEvents
Loop

Modified:

Do While IE.Busy
Loop

It worked perfectly
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Not able select list value in HTML

On Sep 29, 5:04*pm, Don Guillett wrote:
Try this url. I can send a file using an external query. dguillett1
@gmail.comwww.gocurrency.com

On Sep 29, 4:11*am, Raghu wrote:



Hi Team,


I am trying execute below macro for getting Currency exchange amount
usingwww.oanda.com. I am not able to select Input Currency and Output
Currency..


Any ideas?


Sub CurrencyConverter()
Dim IE As InternetExplorer
Dim Base_Currency As String
Dim Quote_Currency As String


Set IE = New InternetExplorer
IE.Visible = True
IE.Navigate "http://www.oanda.com/currency/converter/"


Do While IE.ReadyState < READYSTATE_COMPLETE Or IE.Busy = True
* * DoEvents
Loop


Base_Currency = "EUR"
IE.Document.getElementById("quote_currency_input") .Value =
Base_Currency 'Not working - Actual currency *quote is not getting
selected


Quote_Currency = "USD"


IE.Document.getElementById("base_currency_input"). Value =
Quote_Currency 'Not working - Actual currency *quote is not getting
selected


IE.Document.getElementById("quote_amount_input").V alue = 100
IE.Document.getElementById("flipper").Click
Final_Amount = IE.Document.getElementById("base_amount_input").Va lue


MsgBox 100 & Base_Currency & "= " & Final_Amount & Quote_Currency


End Sub- Hide quoted text -


- Show quoted text -


I have tried the URL but it is one more Currency converter website.
But is there any help, why the above is not working???
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving list items from ordered list in HTML [email protected] Excel Programming 2 September 3rd 09 04:08 AM
How to Pre-Select items in Multi-Select List on Form MikeZz Excel Programming 2 August 6th 09 06:33 PM
Drop Down List a la HTML John V[_2_] Excel Programming 2 December 8th 08 06:44 PM
Displaying select cells in HTML document Alex Excel Discussion (Misc queries) 0 June 8th 07 07:59 PM
paste data to cells from html select box Steven Excel Programming 0 November 11th 04 04:19 PM


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"