Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks much will get at it
"Steve" wrote: this should get you started: Function FileExists(fName) As Boolean ' True if exists On Error GoTo FileExists_Error FileExists = False Dim x As String x = Dir(fName) If x < "" Then FileExists = True Exit Function FileExists_Error: Select Case Err.Number Case 52 FileExists = False Case Else MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure FileExists " End Select End Function "Curt" wrote in message ... Need help vba code to take input from save as dia box check if that file exists if does reject that filename. then ask for diff name. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check to see if a value exists in a list? | Excel Worksheet Functions | |||
Check if file exists | Excel Discussion (Misc queries) | |||
How to check if a file exists in an ftp folder | Excel Discussion (Misc queries) | |||
How check for No/Cancel Button when SaveAs and file already exists? | Excel Programming | |||
check if a file exists / is open | Excel Programming |