0
I’m having a problem downloading a file via vba, because when I can open the document (pdf format) I can save it with name and location quietly, but when it does not open in the browser itself, ie when it is a file . doc it opens only the tab below.
I can download it by pressing Save with Sendkeys, code below:
Application.SendKeys "%(s)"
However I can not determine the path and the location, I wonder if you have how to access the down arrow and choose Save As, so I can determine the place of rescue and name.
I tried to save the file by URL but it is not possible because the site has a lock for this type of operation.
Good morning Lucas, I tried Sendkeys, but it only allows to download, I can not determine the location and name of the file.
– M. Marins
Hello! Even with the use of keys? And Application.Getsaveasfilename associated with a variable worked?
– Lucas Augusto
Yes, even with the use of the keys, getSaveAsFilename also does not work
– M. Marins