ouestque
asked on
Excel VBA: Validate File Can Be Downloaded
What VBA would I use that would download a file, but before doing so validate the file can be downloaded before attempting the pull. If possible please try to do this without using On ERROR. I'm trying to see if there is a solid way to check if a file can be downloaded without attempting the download first.
EXAMPLE
EXTRA NOTES
EXAMPLE
- Assume we are downloading the file at the following link: https://data.cdc.gov/api/views/cjae-szjv/rows.csv?accessType=DOWNLOAD
- In the link above it would validate the file can be downloaded before attempting the download. If for any reason the file could not be downloaded a message box would appear stating "The file can not be pulled. The link may have changed."
EXTRA NOTES
- I may have seen someone try to do this using Dos/Shell but couldn't get it to work at the time and don't remember where it is at.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.