+ Reply to Thread
Results 1 to 7 of 7

Web Query Requires Form Fill In

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Web Query Requires Form Fill In

    I have spent months looking around and trying new things on my issue but either don't know enough about VBA in Excel 2003 or am trying the wrong things.

    I know how to create a basic web query, however, I have a number of websites where the I can't use my regular web query. Instead, when I access a .php, or similar, page I can't add the regular web query language to make it return my result.

    Can someone draw up a quick and basic code to access the following site:
    http://www.ncbpe.org/process_request.php
    name="license"

    I would like it to return the results and import the 4th table into my spreadsheet. I can take it from there.

    Thank you and sorry if this has been covered before, I just can't figure it out.

    Bryan

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

    Re: Web Query Requires Form Fill In

    Hello Bryan,

    Welcome to the Forum!

    I went to the website and saw three input boxes: License, Last name, City or Business. I input Asheville, since I grew up there, and got a valid license number to use. After inputting the license, there were no tables of data. Can you explain the steps and data you want in more detail?
    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!)

  3. #3
    Registered User
    Join Date
    06-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Web Query Requires Form Fill In

    I have the license numbers and I want to use a web query to input that license number and click submit search. Once I click submit search, the persons license information appears on on the page (exp date, actions, etc...). Once I get to that point, I can import that data. I just don't know how to get the web query to type in the data field (license number).

    Thanks for your help.

    Bryan

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

    Re: Web Query Requires Form Fill In

    Hello Bryan,

    I can write code for you to do this using Internet Explorer. Will that work for you?

  5. #5
    Registered User
    Join Date
    06-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Web Query Requires Form Fill In

    Thanks! That would be great!

    Bryan

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

    Re: Web Query Requires Form Fill In

    Hello Bryan,

    This macro will start Internet Explorer and open the the web page. It will then fill in the license number and click submit.
    Please Login or Register  to view this content.

    Example of Calling the Macro
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Web Query Requires Form Fill In

    Thank you. For some reason I could not see the code but logged in today and it works great!

    Thanks again!

+ 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