+ Reply to Thread
Results 1 to 8 of 8

Manipulating Dropdown List in IE using VBA & Form Submit oddities

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Hello Excel gurus! I could use your assistance on something that's perplexed me for a bit. Got two issues if that's fine.

    First issue: I have a form I am trying to manipulate in VBA. Form is at http://douglasne.mapping-online.com/.../valuation.jsp . Basically I am running into an issue trying to manipulate the dropdown menus. Here is my code:


    Please Login or Register  to view this content.
    It correctly fills in the "house #" and "Street Name" correctly, but despite what I have tried (directly referring to the elements, which I believe are 3 and 5, or "StreetDir and StreetSfx" I just cannot get it to change the values from blank! Any ideas or tips on how to get it to work, please? Thanks in advance!

    Problem #2:

    Different form, with a weird oddity. So the form is at http://www.sarpy.com/sarpyproperty/ . My code is as follows:

    Please Login or Register  to view this content.
    So it fills in the inputs correctly. However, here's the oddity:

    If I click on the "submit" button manually in IE, it submits the form. If I have VBA run the submit function OR click the button, it just goes back to the main screen. I don't get it. Anyone got any ideas?

    Thanks so much!!!!!!!!

  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: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Where's the rest of the code?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Here is the rest of the code for the first. Getting the second code in a minute. It's kinda sloppy but I've had to make do with a semi-automatic version that required some manual input. My client wants it fully automated though!

    Please Login or Register  to view this content.


    Edit: I'm super sorry but the select case part that defined Ave is missing in some code somewhere. Trust me, there is a definition for it. The variables themselves are fine (at least they are defined) but they won't input into the forms. I know my code is an absolute mess but I have been toying with it for hours and I just cannot get these dumb forms to accept ANYTHING!

    Edit #2: Found the avenue piece. I will update with code 2 in a minute.
    Last edited by JScottArnold; 01-30-2013 at 05:20 PM. Reason: forgot to end code tag

  4. #4
    Registered User
    Join Date
    01-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Here is the full second problem code:

    Please Login or Register  to view this content.
    Hopefully this helps. Again I apologize, I've been hacking at this code way too much to make it work but I've tried everything I can think of and some google searches. If you can help I would be so thankful!!!!

    Edit: Cleaned it up some. Let me know if I can do anything else to help!
    Last edited by JScottArnold; 01-30-2013 at 05:26 PM.

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

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    This is how you can select from the Suffix dropdown.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Whoops, had some internet issues and double posted.

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

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    I'm sorry but that code doesn't compile.

  8. #8
    Registered User
    Join Date
    01-30-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Manipulating Dropdown List in IE using VBA & Form Submit oddities

    Quote Originally Posted by Norie View Post
    This is how you can select from the Suffix dropdown.
    Please Login or Register  to view this content.
    Fantastic! That worked perfectly! Thank you so much!

    Edit: I'll clean up the second code so it compiles. I needed to make it actually look halfway decent anyway.

    Edit #2: Here is the code. I accidentally deleted a next i.

    Please Login or Register  to view this content.
    Thanks for your patience!
    Last edited by JScottArnold; 01-30-2013 at 05:46 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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