RE: Open explorer and filter file selection



Chris,

Very interesting. I am looking for something different here.

I want to see the Windows Explorer exactly like:
Shell "explorer.exe " + "C:\", vbMaximizedFocus

except I want to be able to filter on a specific string in the name which I
will use a variable to define the string.

Thank,

Steven

"Chris O''''Neill" wrote:

"Steven" wrote:

Example:
Shell "explorer.exe " + "C:\", vbMaximizedFocus

I would like to be able to filter down on a string like:
-----------------------------
Dim strExplorer as String
strExplorer = *Steven*
-----------------------------
Then using the Shell above it would open explorer and just show me files
with the name Steven in them. Then either opening a file or close explorer
is all I would do from there.

Is that possible?

Check this out:

http://www.mvps.org/access/api/api0001.htm

You'll notice that it's filtering on file extensions (e.g. ".XLS") but I
don't see why you couldn't filter on anything (e.g. "Steven.*") and it would
work too. Just a matter of editing the strFilter lines in the code. Heck,
without too much effort you could even modify it so you can pass it the
filter that you want.

Hope that helps...

Regards, Chris

.



Relevant Pages

  • RE: Open explorer and filter file selection
    ... except I want to be able to filter on a specific string in the name which I ... Dim strExplorer as String ... Then using the Shell above it would open explorer and just show me files ...
    (microsoft.public.access.modulesdaovba)
  • RE: Open explorer and filter file selection
    ... except I want to be able to filter on a specific string in the name which I ... Dim strExplorer as String ... Then using the Shell above it would open explorer and just show me files ...
    (microsoft.public.access.modulesdaovba)
  • RE: Open explorer and filter file selection
    ... except I want to be able to filter on a specific string in the name which I ... Dim strExplorer as String ... Then using the Shell above it would open explorer and just show me files ...
    (microsoft.public.access.modulesdaovba)
  • Re: how do i print multiple documents on a sharepoint website?
    ... Your suggestion ... would be very helpful if we were dealing with a smaller number of documents. ... Using Explorer ... document to its proper print group and we can filter on that column to ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Assigning a drive letter to com port
    ... extension, no FS filter. ... system driver you should get Rajeev Nagars book "Windows NT File System ... In Windows Explorer, ...
    (microsoft.public.development.device.drivers)