Results 1 to 3 of 3

Need help with FileSearch function and Excel2007/Access2007

Threaded View

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need help with FileSearch function and Excel2007/Access2007

    Hi All,

    We recently upgraded to Office 2007 suite and now are having issues exporting data from Access. We are trying to export to Excel and the process fails at the FileSearch. I'm not a programmer and our company don't have an Access DB programmer at our company. Can someone be so kind as to help out? Thanks in advance!

    Below is where the error occurs in the coding:
    Function findFile(strTemp As String) As Boolean
    
        With Application.FileSearch
    
        .NewSearch
        .LookIn = filePath(strTemp)
        .SearchSubFolders = False
        .filename = filename(strTemp)
        .MatchTextExactly = True
        ' .FileType = msoFileTypeAllFiles
        If .Execute() > 0 Then
        findFile = True
        Else
        findFile = False
        End If
        End With
    End Function
    Last edited by Paul; 04-19-2012 at 04:54 PM. Reason: Added CODE tags for new user. Please do so yourself in the future.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1