LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Application.FileSearch Problems

If you want to change something in each file and save it

Try this example
http://www.rondebruin.nl/copy4.htm

Read the information good on the page

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Fatz" wrote in message ...
On May 22, 4:31 pm, "Ron de Bruin" wrote:
Hi Hi Fatz

What do you want to do with the files ?

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

"Fatz" wrote in ...

On May 22, 3:38 pm, "Ron de Bruin" wrote:





Hi Fatz


This is removed from 2007
You can use Dir


See how i use it on this pagehttp://www.rondebruin.nl/copy3.htm


--


Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm


"Fatz" wrote in ...
Hi-


I just upgraded to Office '07 and I am having trouble with some code.
The following code works in 97 but does not work in 2007.


With Application.FileSearch
.NewSearch
.LookIn = "N:\Sales\MAP ROLLUP"
.SearchSubFolders = False
.Filename = "*.xls"
.Execute


Does anyone know how to code the above in 2007?


Thank You!


Chris- Hide quoted text -


- Show quoted text -


Ron - Thanks for your help. I will be 100% honest and let you know
that I do not understand a thing on that site! I am a VBA rookie.
Can you copy and paste the section I should be looking at?

Thanks Again,
Chris- Hide quoted text -

- Show quoted text -


The current macro loops through each Excel file that is in a
particular folder and applies Functions I have written. It works
beautifully in 97.

I just need code that will replace this:

With Application.FileSearch
..NewSearch
..LookIn = "N:\Sales\MAP ROLLUP"
..SearchSubFolders = False
..Filename = "*.xls"
..Execute

Application.FileSearch kicked ass for me in 97.......not sure what
problems others had.....

Thanks for helping me through this.

Chris
 
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
Set fs = Application.FileSearch [email protected] Excel Programming 4 April 15th 08 10:17 PM
Application.FileSearch Help Patrick Kirk Excel Programming 2 April 7th 08 06:22 PM
Problems with Application.FileSearch Jim Rech Excel Programming 0 December 15th 06 05:18 PM
What is better: Application.FileSearch or Dir ?? WhytheQ Excel Programming 9 October 25th 06 01:29 PM
Application.Filesearch EA Excel Programming 3 August 17th 06 10:07 AM


All times are GMT +1. The time now is 02:44 AM.

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

About Us

"It's about Microsoft Excel"