simonphillips
New Member
- Joined
- Mar 25, 2008
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hi all,
Thanks for all the great people who make this resource the "end of the rainbow" for those of us still learning all the wonderful abilities of Excel
My Task: I have a VB script that needs to trawl through multiple webpages downloading a file on each page. The file download is initiated by hitting a button on the webpage.
I have used the standard pattern below to open the webpage:
My problem is that the download is an excel file and I am prompted with a open/save/cancel popup window.
How do I access the controls on the popup from my macro (preferably to open the file) ?
The intention is then to select the relevant cells from worksheet (opened within IE) and paste into the relevant part of my master sheet. Alternatively I could just save and manually manipulate the set of saved files.
TIA
Simon
Thanks for all the great people who make this resource the "end of the rainbow" for those of us still learning all the wonderful abilities of Excel

My Task: I have a VB script that needs to trawl through multiple webpages downloading a file on each page. The file download is initiated by hitting a button on the webpage.
I have used the standard pattern below to open the webpage:
Code:
With IEPage
.Visible = True
.Navigate PageString
Do Until .ReadyState = 4: DoEvents: Loop
Do Until .Document.ReadyState = "complete": DoEvents: Loop
End With
My problem is that the download is an excel file and I am prompted with a open/save/cancel popup window.
How do I access the controls on the popup from my macro (preferably to open the file) ?
The intention is then to select the relevant cells from worksheet (opened within IE) and paste into the relevant part of my master sheet. Alternatively I could just save and manually manipulate the set of saved files.
TIA
Simon