Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2007, 02:18 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Set fs = application.filesearch

Hello,

My problem is simple and seems to be common. I had and Excel Macro that I used to find files with excel type format, located in the same path, but with variance on the name; then exporting the data attending to the similars. To do that, I used the command set fs = application.filesearch. It was working perfectly until we upgraded from Microsof Office 2003 to 2007. Why it stopped working and what you suggest me to do? This is the logical of what I was doing:

Set fs = Application.FileSearch
With fs
    .LookIn = "C:\Documents and Settings\admin\Desktop\Pablo1"
    .Filename = "*.xls"
    If .Execute > 0 Then
               For i = 1 To .FoundFiles.Count
Dim libro As String
libro = .FoundFiles(i)
Workbooks.Open (libro)






Similar Threads
Thread Thread Starter Forum Replies Last Post
FileSearch Extension Problems JohnSmith Excel VBA 0 May 24th, 2007 07:04 PM
i need a script to set proxy for my application rahuljain_w .NET Web Services 0 October 10th, 2005 04:53 AM
FileSearch method fails maxpotters Excel VBA 6 February 23rd, 2005 05:19 PM
How to save LongRAW oracle data as image on FS Santosh29 Java Databases 0 February 16th, 2005 12:42 AM
how to set checked listbox in access application. Skyblue Access VBA 2 September 5th, 2003 09:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.