I'm trying to save a csv file which is generated by a database query and accessed through a browser. There is not URL that I can use (or I would be done a long time ago).
I'm using the MSHTML references to navigate through the forms and setting options before submitting. Once I submit, I get the file download prompt. I can use Application.SendKeys to decide to Save or Open the file, but I need to know either: 1) where the file saves to, so I can move/rename it or 2) Open the file and save it from there.
When I do
the window just... doesn't open(?).
If I do
I'm not able to capture the save location.
I started looking into the SendMessage API, and I've downloaded the AllAPI API-Guide utility, but I'm not really sure what to do with it.
Does anyone have suggestions?
I'm using the MSHTML references to navigate through the forms and setting options before submitting. Once I submit, I get the file download prompt. I can use Application.SendKeys to decide to Save or Open the file, but I need to know either: 1) where the file saves to, so I can move/rename it or 2) Open the file and save it from there.
When I do
Code:
Application.SendKeys "o"
If I do
Code:
Application.SendKeys "s{Enter}"
I started looking into the SendMessage API, and I've downloaded the AllAPI API-Guide utility, but I'm not really sure what to do with it.
Does anyone have suggestions?