Like Dar Saveas on I.E

Asked

Viewed 813 times

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.

inserir a descrição da imagem aqui

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.

1 answer

0

  • Good morning Lucas, I tried Sendkeys, but it only allows to download, I can not determine the location and name of the file.

  • Hello! Even with the use of keys? And Application.Getsaveasfilename associated with a variable worked?

  • Yes, even with the use of the keys, getSaveAsFilename also does not work

Browser other questions tagged

You are not signed in. Login or sign up in order to post.