+ Reply to Thread
Results 1 to 3 of 3

VBA Code for to Submit Button

  1. #1
    Registered User
    Join Date
    04-13-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA Code for to Submit Button

    Hi:

    I am a newbie in VBA. I have a list of bonds whose price I want to update everyday. So, I thought I should write a macro for it. I am using this site to get the latest price data: http://finra-markets.morningstar.com...&symbol=VMC.GP

    I have the CUSIP number of the bonds and I want to use this as the search field. The website has assigned some internal ticker to each bond that shows up in the address bar, See the ticker and symbol in address above. So I cannot use a direct method to get the price data. However, the site also allows users to search for bonds by CUSIP number. When you go on the page, if you put the CUSIP number instead of "Lookup Symbol". You will get the result. For instance if you put "90131HAA3" in the field of Lookup you will get the correct result.

    So, I have tried to write a code that opens the page and put the CUSIP code in the search field. However, I am unable to click the "GO" button. It is not working. I am getting no errors.

    Please help.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: VBA Code for to Submit Button

    You could try .submit instead of .click.

    Been a while since I've done any IE automation, so if that doesn't work I'll have to declare myself 'out'.

  3. #3
    Registered User
    Join Date
    04-13-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA Code for to Submit Button

    Tried but got an error. "Object does not support this property"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code for submit button to delete row dependant on combobox value
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2014, 10:01 AM
  2. [SOLVED] Submit button - how to add command 'remove' conditional formatting in code?
    By WillGe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2012, 08:34 PM
  3. Replies: 1
    Last Post: 02-05-2012, 09:31 PM
  4. Clicking on Submit button in web page hangs up VBA code....
    By xlkugan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2012, 09:56 AM
  5. Create a Submit button save filename as A1, submit email unc path, etc.
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2009, 09:52 AM

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