Avatar of Andy Brown
Andy Brown
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

VBA / Download file from the web.

I have a Microsoft Access application running on an RDP server that is heavily locked down.  I need to give users the ability to download files from a link (such as Dropbox), which can then be processed by the application (Excel for importing, PDF for email attachments etc).  

I have created a form that allows users to enter the link and found a couple of code snippets that in theory handle the download (using URLDownloadToFile and the Microsoft.XMLHTTP object).  However, whilst it does generate a file - it's an HTML file (not the PDF test file I was hoping for)

Does anyone know of a reliable way of downloading the actual file?
HTMLMicrosoft AccessVBA

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon