+ Reply to Thread
Results 1 to 3 of 3

html dropdown lists with VBA

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Milan
    MS-Off Ver
    Excel 2007
    Posts
    13

    html dropdown lists with VBA

    Hi everybody,

    I am working on a macro which goes to a specific url then copy and paste the page on an excel spreadsheet.
    It's all right until I copy and paste the whole page, but now I'd need to select a given value on a dropdown list on that webpage in order to get what I exactly want.

    Would you please help me in this?

    The webpage has nine dropdown lists and I need to select the value of last one.
    I'm not good in HTML but I think the following string of the code defines the droplist I need:
    <select name ="calendar"> (there are indeed nine of them)
    and this following string should say the value needed to pilot the list and what it shows
    <select value ="7">ABCD</option>

    My code is so far like this:

    URL = "http://abcdefgeh.report.php"
    ret = Shell("rundll32.exe url.dll,FileProtocolHandler " & URL)

    Set ie = CreateObject("InternetExplorer.Application")

    ie.navigate URL
    Do While ie.ReadyState <> 4
    DoEvents
    Loop
    ie.ExecWB 17, 0
    ie.ExecWB 12, 2


    I totally ignore how to write the rest of the code that might select the list choosing the given value...
    I'd appreciate any help

    thanks a lot

  2. #2
    Registered User
    Join Date
    02-11-2013
    Location
    Milan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: html dropdown lists with VBA

    guys please...any suggestion?

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    Lima Peru
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: html dropdown lists with VBA

    Hello gip.pisano, do you still need this code to be written? I can try to solve it but i will not try to do it if you already have found a solution. Regards.

+ 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. [SOLVED] Problems with creating hyperlink lists (using google search HTML)
    By VanExcelDude in forum Excel General
    Replies: 1
    Last Post: 04-30-2013, 02:29 PM
  2. how to ignore blank cells in creatig dropdown lists (validation lists)
    By Elainefish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 07:45 AM
  3. Excel with Dropdown and Formula converting to HTML
    By junior123 in forum Excel General
    Replies: 1
    Last Post: 08-14-2012, 11:35 PM
  4. [SOLVED] Cascading dropdown lists all tied to first dropdown
    By ruthl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2012, 08:03 PM
  5. [SOLVED] Export to HTML with Validation dropdown list
    By Vic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2005, 12:00 AM

Tags for this Thread

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