Hi,
Please can someone help me. I am trying to download a zip file from a website using VBA. The website requires a login. I have the login saved in internet explorer or Chrome.
At the moment the macro runs but internet explorer prompts to save or open.
Is there a better way to do this? I've seen URLDownloadtofile but didn't think this worked when requiring a login.
And then some help UNzipping this would be great.
Thanks
Please can someone help me. I am trying to download a zip file from a website using VBA. The website requires a login. I have the login saved in internet explorer or Chrome.
At the moment the macro runs but internet explorer prompts to save or open.
Is there a better way to do this? I've seen URLDownloadtofile but didn't think this worked when requiring a login.
And then some help UNzipping this would be great.
Thanks
VBA Code:
Sub Web_Scraping()
Dim Internet_Explorer As InternetExplorer
Dim saveInFolder As String, saveAsFilename As String
Set Internet_Explorer = New InternetExplorer
Internet_Explorer.Visible = False
Internet_Explorer.Navigate ("https://www.pencarrie.com/export/products.zip")
End Sub