By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Filesearch problem

P: n/a

I am using Filesearch to find a list of files in a directory, and then to
take the data and put it into an Access database. The code was working well
within VBA and I have ported it into VB6, and it no longer works.

Basically code is as follows:

Dim fsAllFiles as Office.Filesearch

Set fsAllFiles = Application.Filesearch

Here I get an Object Required error which I can't figure.

Any help appreciated.



Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
you probably do not have a reference to Office in your VB6 code, so the
libraries are not available.

You an use Dir() to do this, too.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.