Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default does a file exist?


"nath" <n@n wrote in message ...
Is there any way of checking to see if a file exists? So
if it doesnt i can generate it.

TIA

Nath


Use the Dir Function

string=Dir(pathname,attributes)

Where

string is the returned name, null if no match found
pathname = the drive\directory name (wildcards allowed)
attributes is an optional argument specifying the
type of file to list

vbNormal (Default) Specifies files with no attributes.
vbReadOnly Specifies read-only files in addition to files with no
attributes.
vbHidden Specifies hidden files in addition to files with no
attributes.
VbSystem Specifies system files in addition to files with no
attributes. Not available on the Macintosh.
vbVolume Specifies volume label; if any other attributed is specified
vbDirectory Specifies directories or folders in addition to files with
no attributes

Keith


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
excel looking foe xla file that no longer exist kirk Excel Discussion (Misc queries) 3 July 21st 09 09:38 PM
Can Excel ignore file links that do not yet exist? DaveyC4S Excel Discussion (Misc queries) 2 February 7th 06 07:34 PM
Ignore file links that do not exist. DaveyC4S Excel Discussion (Misc queries) 1 February 7th 06 03:53 PM
does a file exist Arien Excel Discussion (Misc queries) 3 January 3rd 06 01:27 PM
does a deleted file still exist in my computer ? traderhorn Excel Discussion (Misc queries) 3 November 22nd 05 06:51 PM


All times are GMT +1. The time now is 02:29 AM.

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

About Us

"It's about Microsoft Excel"