FractalWalk
Technical User
I have written an Excel VBA macro that opens an IE9 window and goes through a series of forms and filters to create and download a report. The final step is to click an element to save the report to my local drive. At that point the report and its URL is created by Javascript on the fly so I don't know ahead of time what it will be. IE9 then provides it's file download dialog box to Open/Save/Cancel. My code then selects the "Save" option and the download begins.
My problem is that I need to know when the download completes so that I can run the next report. IE9 provides the yellow notification bar at the bottom of my browser window with a changing text showing the progress. I need to be able to know when the bar says the download has completed. I know the handle of the notification bar, but I don't know how to read the text of the window. Is there some API where I could pass the window handle and get the text? Or some way in VBA to select the window to get a status update?
My problem is that I need to know when the download completes so that I can run the next report. IE9 provides the yellow notification bar at the bottom of my browser window with a changing text showing the progress. I need to be able to know when the bar says the download has completed. I know the handle of the notification bar, but I don't know how to read the text of the window. Is there some API where I could pass the window handle and get the text? Or some way in VBA to select the window to get a status update?