IE Automation "Download File" dialog box

asipoy

New Member
Joined
Jan 12, 2012
Messages
9
I have an internal web based tool from. Using Excel VBA I submit the user credentials, open a report page, auto submit all the required details on a web form and click on show report button. This will generate a report that will be displayed on the web page and also allow the user to export it to excel.

There are two option available for me here. either i loop through all the rows and columns in the html table displayed on the web page and get the data in the excel sheet. Second option is to click on the "Generate Report" link which will prompt me with a download file dialog box (IE Download window). the first option is too slow and hence I have only one choice left.

however, there is no way that i can either open the document by clicking on the "Open" button or save it by clicking on the "Save" button. I would prefer opening it as it will save my from specifying the location and then reopening it again from there.

Also to add to this, this is not a direct link. the report is generated only after the form fields are filled and submitted to the server.

The url looks like:

[URL]http://admin.abcd.com/admin/report.jsp?selReportFormat=E[/URL]

So I cannot even direcly download from the above url. If i try the shortcut what i get is a blank file of 1 KB.

Could anyone please suggest me a workaround to this.

I have already searched google and multiple forums for this but have received no success.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top