Results 1 to 2 of 2

Thread: Responding to Browser prompt

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    3

    Responding to Browser prompt

    Not sure if this is the correct forum for this question. I'm working in VBA - Excel (2010)

    I'm attempting to download a CSV file from a web based data logging system. Unfortunately, the system does not provide the URL to the CSV file. Instead, the URL triggers a CGI Script (the URL looks something like this - http://www.vendortool.com/cgi-bin/cg...d=site_ID=1071)

    After sending this URL, the browser responds with a dialog box (hopefully, shown below)

    Name:  dl.jpg
Views: 230
Size:  45.4 KB

    My choices are "open with Excel" or "Save File"

    How do I automatically start the download and capture the subsequent CSV data (I don't need to save the data, just process a few numbers)

    I should note, that I'm doing this on a Windows 7 machine with Office 2010 and I'm creating an instance of Explorer and sending the URL (the Firefox graphic above was for illustration only) I have no difficulty capturing the page that comes down just before the csv dialog box is presented :-(

    Thanks in Advance,
    Mark
    Last edited by durrenm; Sep 3rd, 2012 at 05:42 PM. Reason: more info

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Responding to Browser prompt

    Not sure if this is the correct forum for this question.
    the same question has been asked here before, with solutions, some by me
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width