Access URLDownloadToFile API function

Downloads web pages from the Internet and saves them to a file.

Syntax
URLDownloadToFile (pCaller, szURL, szFileName, dwReserved, lpfnCB)

The URLDownloadToFile function syntax has these parts:

Return Values
Returns one of the following values: E_OUTOFMEMORY  ''The buffer length is invalid or there was insufficient memory to complete the operation.  S_OK The operation succeeded.''

Code Examples
Include this statement at the top of the Module

Wrap the API Function in a User Function Call the Function from a Sub