LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Code to do a Web-download

In an addin I employ some commonly used Web-download code as shown
below:


Public Function DownloadFile(sDlNetFileAddy As String, _
sDlUserPath As String) As Boolean
DownloadFile = URLDownloadToFile(0&, sDlNetFileAddy, _
sDlUserPath, BINDF_GETNEWESTVERSION, 0&) = ERROR_SUCCESS
DoEvents
End Function


Along with the supporting code, it works well, but my concern is for
those people with really slow connections. I'm concerned it may cause a
runtime error if it takes too long.

Any thoughts on this? Is there a way I can set a timeout variable?

Thanks,
Chuck

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
items chosen to download are NEVER all there after download comple jwhitehurst New Users to Excel 3 November 9th 07 04:00 PM
Useful add-ins to download [email protected] Excel Discussion (Misc queries) 0 March 17th 06 04:21 AM
how do i download again i have key code remo85414 Excel Discussion (Misc queries) 1 December 19th 05 04:43 AM
Download No Name Excel Programming 1 October 1st 04 09:15 AM
VBA code for automatic download shekar Excel Programming 1 August 14th 04 05:28 PM


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"