Hi there !
I would like to download a file from a website using VBA. The tricky part is that the file is generated after filling a form in the webpage and clicking on the submit button, so I don't know its name and address before download (meaning I can't use the URLDownloadToFile API). I've tried several things, so far I've got two problems :

I would like to download a file from a website using VBA. The tricky part is that the file is generated after filling a form in the webpage and clicking on the submit button, so I don't know its name and address before download (meaning I can't use the URLDownloadToFile API). I've tried several things, so far I've got two problems :
- Using a XMLHTTP request (as in this thread), I can't get to do the right request to trigger the download. I think the dynamic form is reading the webpage before submitting, adding some variables and I don't know how to simulate that with my request.
- Using a HTMLDocument with IE, I manage to trigger the download but I can't download automatically, I have to interfere manually (and I'd like the app to run background which doesn't seem possible this way).
