Pither Rukka Posted January 27, 2012 Posted January 27, 2012 I want to deleted a file but if the file was deleted the program run next routine. I try simple code below but why cannot run. Sub DelFileDwg Kill "c:\My File\xxx.dwg" On Error GoTo MyMessage Exit Sub MyMessage: MsgBox "There are not problem. End End Sub Please your advised. Thanks Quote
BlackBox Posted January 27, 2012 Posted January 27, 2012 Will this work? Function Fileexists(fname) as boolean If Dir(fname) <> "" then _ Fileexists = True _ Else Fileexists = False End Function Quote
SLW210 Posted January 27, 2012 Posted January 27, 2012 Please read the CODE POSTING GUIDELINES and edit your post. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.