Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Filename search using Office 97 with Windows 2000

Sorry, got a little happy with the enter key.

I can't get this to work with the mentioned combination. I
have it working fine on a Windows 2000 machine running
Office 2000, and on a Windows 95 machine running Office
97, but when I try to run it on a Windows 2000 machine
with Office 97, I get a application error. The code stops
running at the .Filename = "*.txt" line of code.

Thanks in advance for any help.
Dave

-----Original Message-----
Hi,
Set fs = Application.FileSearch

With fs
.LookIn = "C:\My Documents"
.Filename = "*.txt"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filename search using Office 97 with Windows 2000

Hi Dave

Try .Text instead of *.Text

Post back if this not work for you

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dave" wrote in message ...
Sorry, got a little happy with the enter key.

I can't get this to work with the mentioned combination. I
have it working fine on a Windows 2000 machine running
Office 2000, and on a Windows 95 machine running Office
97, but when I try to run it on a Windows 2000 machine
with Office 97, I get a application error. The code stops
running at the .Filename = "*.txt" line of code.

Thanks in advance for any help.
Dave

-----Original Message-----
Hi,
Set fs = Application.FileSearch

With fs
.LookIn = "C:\My Documents"
.Filename = "*.txt"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Filename search using Office 97 with Windows 2000

Ron,
That worked. Thanks alot. Why does this combination
not like the wild card?

Dave

-----Original Message-----
Hi Dave

Try .Text instead of *.Text

Post back if this not work for you

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dave" wrote in message

...
Sorry, got a little happy with the enter key.

I can't get this to work with the mentioned

combination. I
have it working fine on a Windows 2000 machine running
Office 2000, and on a Windows 95 machine running Office
97, but when I try to run it on a Windows 2000 machine
with Office 97, I get a application error. The code

stops
running at the .Filename = "*.txt" line of code.

Thanks in advance for any help.
Dave

-----Original Message-----
Hi,
Set fs = Application.FileSearch

With fs
.LookIn = "C:\My Documents"
.Filename = "*.txt"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filename search using Office 97 with Windows 2000

Hi Dave

I can tell you why it work this way
I have read that this is sometimes a solution.


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dave" wrote in message ...
Ron,
That worked. Thanks alot. Why does this combination
not like the wild card?

Dave

-----Original Message-----
Hi Dave

Try .Text instead of *.Text

Post back if this not work for you

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dave" wrote in message

...
Sorry, got a little happy with the enter key.

I can't get this to work with the mentioned

combination. I
have it working fine on a Windows 2000 machine running
Office 2000, and on a Windows 95 machine running Office
97, but when I try to run it on a Windows 2000 machine
with Office 97, I get a application error. The code

stops
running at the .Filename = "*.txt" line of code.

Thanks in advance for any help.
Dave

-----Original Message-----
Hi,
Set fs = Application.FileSearch

With fs
.LookIn = "C:\My Documents"
.Filename = "*.txt"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
.



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2000 and Windows 7 Problem Bill Morris Excel Discussion (Misc queries) 2 December 28th 09 11:03 PM
office pacakge in windows 2000 NT jo Excel Discussion (Misc queries) 0 June 21st 05 08:23 AM
Excel Programs developed in Office 2000 on Windows 2000 Trooper Excel Discussion (Misc queries) 4 March 12th 05 11:09 PM
can i use office 2000 on windows XP and what is the pricing of 20. Sherree Excel Discussion (Misc queries) 2 January 8th 05 04:31 AM
Office 2000 and Windows XP JPL Excel Discussion (Misc queries) 0 December 2nd 04 10:39 PM


All times are GMT +1. The time now is 07:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"