+ Reply to Thread
Results 1 to 4 of 4

Internet Explorer not validating dropdown list commands given by VBA script

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    3

    Internet Explorer not validating dropdown list commands given by VBA script

    I am working on populating a website with exceLVBA code that runs with a command button and pulls data from Excel cells.

    Two points-

    1> A part of the code is when a person selects his state. say Arizona on excel combo box , the code below executes and selects AZ - Arizona in the internet explorer page which is a drop down list.

    ie.document.getElementById("$idofdropdownlist").Value = "PBC|US|AZ"

    An undisclosed button which is initially disabled is enabled by code ie.document.getElementById("undisclosed").disabled = False
    The button is clicked using this command ie.document.getElementById("undisclosed").click, which interact with underlying database and executes an event but gives an error that " the value in state is required for search".

    It seems IE is not identifying the entry of the state field.

    2> Not always but sometimes I get an error "Object variable or Wih Block Variable not set" for following code which fills in a text box.

    ie.document.getElementById("textbox").Value = "creation request"


    Please give me a solution for 1 and 2

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Internet Explorer not validating dropdown list commands given by VBA script

    Can you post all the code and the URL?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Internet Explorer not validating dropdown list commands given by VBA script

    I may not be able to code tags.
    Last edited by siddharth1980; 12-03-2013 at 04:21 PM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Internet Explorer not validating dropdown list commands given by VBA script

    Can you add code tags?

+ 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] How to toggle focus between INTERNET explorer window and WINDOWS explorer window using VBA
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 03:29 PM
  2. Automation of Java Script links in Internet Explorer using VBA
    By jagguvaka in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2013, 12:00 PM
  3. Validating data with dropdown list
    By cdhamo in forum Excel General
    Replies: 2
    Last Post: 05-05-2013, 02:49 AM
  4. Using internet explorer through VBA
    By bodis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2010, 05:47 AM
  5. error in script from internet explorer
    By fred6529 in forum Excel General
    Replies: 0
    Last Post: 06-11-2005, 04:05 PM

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