+ Reply to Thread
Results 1 to 6 of 6

Getting data from web by inputting form

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Getting data from web by inputting form

    I cannot get the following to work. I don't know how to interpret the source code from the website. Kyle123, you posted similar code on Jan 5, 2012. Could you explain to me what I am doing incorrect? Web asks for Permit Type and Permit Number and I want Excel to feed that to the website and return results back to Excel.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Thank you.

    Please Login or Register  to view this content.
    Last edited by captain smith; 08-01-2012 at 11:33 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Getting data from web by inputting form

    Hi,

    Please use code tags before the mods get you. Click edit post, select your code and hit the # sign

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Getting data from web by inputting form

    Fixed. Sorry about that, I am brand new to the board. I can see how code tags help.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Getting data from web by inputting form

    You aren't going to be able to post data directly like that because of the type of data the webpage is expecting.

    It's also worth noting that (I believe) that this problem can't be solved through use of XML Requests or WinHTTPRequests due to the type of re-directs the site uses in the case of the former and the fact that windows appends a utf type to the end of the content type when using the winhttp request.

    I thin kthe only way of getting this working would be through the use of automating ie, which is possible. I'll have a look at that if I get chance, but it will be much slower than all the above methods (though it doesn't look like there's a lot of choice)

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Getting data from web by inputting form

    When you say automating ie do you mean via excel? Thanks!

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Getting data from web by inputting form

    Yes, it would be done something like the below, but like I said, it's slow ~15 seconds. The below may look like it's not running, but it is
    Please Login or Register  to view this content.


    ---------- Post added at 10:55 AM ---------- Previous post was at 10:54 AM ----------

    Id' be interested in seeing any solution which doesn't involve ie which posts the data directly to the site and returns the results

+ 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