Thank you for that link but I checked two solutions and it doesn't work.
My code looks like
Sub DownloadFile(url As String, filePath As String)
Dim WinHttpReq As Object, attempts As Integer
attempts = 3
url = "https://mysecreturl.com/fodjpdfjps"
filePath = "c:\baza\"
On...