Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub WhatAmIDoing()
If IsItThere("C:\Parade\zzz.txt") Then Call KillFile Exit Sub Else 'do something End If 'more somethings End Sub Function IsItThere(ByRef strPath As String) As Boolean Dim blnFile As Boolean blnFile = Len(Dir(strPath)) IsItThere = blnFile End Function -- Jim Cone Portland, Oregon USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "Curt" wrote in message If ("C:\Parade\zzz.txt") Then Call KillFile exit sub ' Else End If Missing something Want if file exists call KillFile if not by pass and continue "Jim Cone" wrote: Function IsItThere() Dim blnFile As Boolean Dim strPath As String strPath = "C:\Program Files\ahead\Nero\Boo.wav" blnFile = Len(Dir(strPath)) MsgBox blnFile End Function -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "Ray Clark" wrote in message I need to check if a file exists before creating a new file. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check if file exists | Excel Discussion (Misc queries) | |||
How do I check if a sheetname exists in a file? | Excel Programming | |||
How to check if a file exists in an ftp folder | Excel Discussion (Misc queries) | |||
check if file exists | Excel Programming | |||
check if a file exists / is open | Excel Programming |