Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default testing file availablity

I've put together a FTP add-in for Excel, but I have a problem with file
availability. Once the file gets FTP-ed, I check for it's existence; then
the code continues once that file is found. Unfortunately, just because the
file exists, doesn't mean it's available to be opened and read. I thought I
could solve this using the FileSystemObject Object, but I couldn't seem to
find anything that would help. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default testing file availablity

the code in these articles do a low level opening of the file with exclusive
access I believe. Perhaps you could use that to test if it is available to
be opened and read.

http://support.microsoft.com?kbid=138621
XL: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=291295
XL2002: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=213383
XL2000: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=184982
WD97: VBA Function to Check If File or Document Is Open

--
Regards,
Tom Ogilvy


"Maynard" wrote in message
...
I've put together a FTP add-in for Excel, but I have a problem with file
availability. Once the file gets FTP-ed, I check for it's existence; then
the code continues once that file is found. Unfortunately, just because

the
file exists, doesn't mean it's available to be opened and read. I thought

I
could solve this using the FileSystemObject Object, but I couldn't seem to
find anything that would help. Any suggestions?



Reply
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
Testing Rick Rothstein Excel Discussion (Misc queries) 13 December 29th 09 10:45 PM
Testing Jay T. Emory[_2_] Excel Discussion (Misc queries) 0 February 18th 09 08:55 PM
testing Juco Excel Worksheet Functions 2 January 31st 05 01:13 AM
testing for the name of the file James[_23_] Excel Programming 0 May 26th 04 09:45 AM
Testing if a file is open John Baker Excel Programming 3 January 29th 04 01:26 AM


All times are GMT +1. The time now is 05:01 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"