+ Reply to Thread
Results 1 to 3 of 3

How to Change Drop Down value on a website through Excel VBA

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    18

    How to Change Drop Down value on a website through Excel VBA

    Hi,

    I have coded a macro through which I can login to a website automatically (login ID & Pswrd accepts automatically as it's the part of code). Then it selects few options on the page. There's a drop down menu where I need to select "NWC CHAT". However, I am not sure what should be the parameter to be used for it.

    For Example, the below code is working as it does select the date as per my code:

    HTMLDoc.all.StartDate.Value = "9/1/2014"

    Below is the HTML source code specifically for that portion where the drop down menu is:
    HTML Code: 
    I will really appreciate if someone can help me on this.

    Best Regards,

    Shaurya
    Last edited by Leith Ross; 09-25-2014 at 06:52 PM. Reason: Added HTML Code Tags
    Best Regards,
    Shaurya

  2. #2
    Registered User
    Join Date
    06-18-2014
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    18

    Re: How to Change Drop Down value on a website through Excel VBA

    Looking ahead for your valuable suggestion to fix my issue.

    Best Regards,
    Shaurya.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: How to Change Drop Down value on a website through Excel VBA

    Hello spriyatam,

    Here is an example of how to choose an Option in a Select box. You will need to adapt and integrate this code with your own.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] webquery macro navigating through website with drop down menus
    By sonny.thind in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-08-2013, 08:58 PM
  2. Data Query - How to Change Drop down Selection from Website
    By mattjac1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2013, 04:41 PM
  3. Looping though All options on Drop down list on website with VBA
    By sonny.thind in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2012, 04:53 PM
  4. [SOLVED] Change fonts:ASCII extended set is different in Excel, than MS's Website?
    By Alan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2005, 02:05 AM
  5. [SOLVED] Drop down for website
    By Hendrik in forum Excel General
    Replies: 0
    Last Post: 07-21-2005, 06:05 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