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

Filesearch problem

P: n/a
Hi

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.

Cheers

Kevin

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


P: n/a
Kevin,
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.