Using vba and excel, I'm looking to download a file from an url for which I'll not know what the original filename is. Using URLDownloadToFile, or other methods as with WinHttpRequest, expects you to name the file you are downloading. I would like to save with the original filename, as one would do by navigating to the url on internet explorer.
Example of my url: https://mysite.com/PDF/CreatePDFforProcess.aspx?ID=6370947
on Internet explorer, this would open a save as window, with a default filename sugestion.
Many thanks