Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to search a file in VBA?
Message
 
To
16/02/2006 12:50:16
General information
Forum:
Microsoft Office
Category:
Excel
Miscellaneous
Thread ID:
01096801
Message ID:
01097060
Views:
16
This message has been marked as the solution to the initial question of the thread.
Is this what you need?
Sub macro1()
   Set ofso = CreateObject("Scripting.FileSystemObject")
   MsgBox (ofso.fileexists("c:\hi.txt"))
End Sub
>I need a command to search if a file exists on a specific directory.
>How can I do that? Thank you!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform