+ Reply to Thread
Results 1 to 5 of 5

how to use findfile to list the folder that the file is found in

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    how to use findfile to list the folder that the file is found in

    so here i have my snippet of code; just need to program the debug.print to display the file name and path.

    Please Login or Register  to view this content.
    i did some google searching for application.findfile but didn't find a reference with all the subcodes (like .newsearch, etc). so im not sure what to put in my debug.print line.

    thoughts?

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: how to use findfile to list the folder that the file is found in

    Not sure what you're trying to do.

    Application.FindFile does not search for a file. It is a file selector dialog where the user selects a file to open. It only returns True\False depending if a file was opened or not.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to use findfile to list the folder that the file is found in

    thanks alphafrog, how can i search for a file then?

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to use findfile to list the folder that the file is found in

    can anyone help me with this?

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: how to use findfile to list the folder that the file is found in

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to find a file name in Old Folder then save in New Folder if found
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2018, 11:25 AM
  2. Replies: 6
    Last Post: 07-18-2017, 04:51 PM
  3. Replies: 2
    Last Post: 12-29-2015, 04:19 AM
  4. Code to list the folder path and sub folder path of a specific file
    By kalai1587 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 03:51 AM
  5. List file names in folder
    By Temporary-Failure in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2013, 02:43 PM
  6. Macro to open file if found in a folder or any subfolders
    By beze12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2012, 02:27 AM
  7. Add File Sizes for Files Found in a Specified Folder
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2010, 07:52 AM

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