VBA WinHTTP to download file from password proteced https website
Ok, I did it. Here the code: Sub SaveFileFromURL() Dim FileNum As Long Dim FileData() As Byte Dim WHTTP As Object mainUrl = “https://www.website.com/” fileUrl = “https://www.website.com/dir1/dir2/file.xls” filePath = “C:\myfile.xls” myuser = “username” mypass = “password” ‘@David Zemens, I got this by examining webpage code using Chrome, thanks! strAuthenticate = “start-url=%2F&user=” & myuser & “&password=” … Read more