Yes, that would be possible. But why would you want to do that? CreateDocumentFromURL already takes care of the downloading part for you. Anyway, the way to go would be to download the file with URLDownloadToFile, and then point CreateDocumentFromURL to the local file...