Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBA question
Message
From
10/11/2002 13:54:08
 
 
To
10/11/2002 13:37:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00720772
Message ID:
00720774
Views:
9
>I am running Excel file with some Visual Basic code on it.
>I need to find a command similar to ADIR in foxpro and another one similar to FILE(filename) in FoxPro. Does any one know what is the equivalent in VBA?

The easiest way to implement both is to create an instance of the Scripting.FileSystemObject; use the GetFolder method to get a folder object, and then step through the Files collection of the Folder object to get your ADIR() equivalent; you can use the FileExists method to test for a file.

You can access the content of the help file from http://msdn.microsoft.com I think.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform