Consulting

Results 1 to 5 of 5

Thread: How to retrieve data from web form and import it into a macro automatically?

  1. #1

    How to retrieve data from web form and import it into a macro automatically?

    Hello,

    firstly I would like to thank you for reading my question. I'm not a profi in programming in Excel, so if there is any mistake in my question, please let me know, thanks.


    I have a webpage with a form, where user can enter their login info and a location number.

    - Based on these information I would like the location number to be fed into a Macro, when the user was authorized. The Macro then extract required information and give it back as txt-file ( this Macro is already written).
    - The result txt-file need to be convert to an excel file and be availabe on web for downloading.
    - -> All of this process must be automatically done. <--

    My question is, which language (VBA, PHP, Perl,...) should I use to do the work and how can I do it?

    I appriciate all your answers.

    Thank you very much.

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    Any of the languages you mentioned will work. You will require a COM interface to something capable of reading web page info and transferring files. You might want to check out

    http://www.alphasierrapapa.com/IisDe...nents/AspTear/

    It's an oldie, but a goodie. Stan

  3. #3
    thanks, stanl

    I will check your link right now .

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I don't know how you could automate this entire process but you might take a look at one of Johnsk's kb entries that retrieves data from a website and puts it in excel.....you could probably get it to do what you want with the text file too....just a thought. You would still have to upload the excel file after its created.

    Link to Johns kb entry:
    http://vbaexpress.com/kb/getarticle.php?kb_id=296
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    Quote Originally Posted by lucas
    I don't know how you could automate this entire process
    It is not that difficult, just takes an HTTP Agent (e.g. Msxml2.Http, xStandard, Chilkat) and a parser (e.g. the XMLDom and xPath that ships with Microsoft IE). Finally, if you could not POST the finished .xls, you could use FTP.

    What you would use as a host?? Macro, .wsc, .wsh, VB, other 3rd party scripting program...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •