Results 1 to 10 of 10

VBA to Search for files in a Folder and Opens it

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    VBA to Search for files in a Folder and Opens it

    I have a spreadsheet and the content has different file names that are arranged in a single Column. For example, in Column A, I have the following file names.

    A1: Math2.xlsx
    A2: Math1.xlsx
    A3: Eng1.xlsx

    These files are located in the directory C:/Projects/Sample

    But the problem is this: Under the Sample folder, I have so many other folders created there (about 10). Hence I don’t know exactly the location of the files listed above in the Sub Folders.

    I need an excel macro that can search for the files listed from A1 to A (whatever) and show me where it is exactly located under the Sample Sub-Folders and open it when I click on it. For example in A1 if I click on Math2.xlsx, it will show me the sub folder (Under Sample Folder) where it is located and opens it up.
    Is this possible?

    Thanks in advance so much for your time.
    Last edited by vnzerem; 02-04-2014 at 12:37 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel VBA code for selecting a folder then search & open specified files in that folder
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2021, 03:09 AM
  2. Replies: 4
    Last Post: 05-20-2013, 08:31 AM
  3. Search Folder containing XLS files
    By sini in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-02-2011, 04:29 PM
  4. Search files in folder based on search string
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-22-2008, 01:12 AM
  5. [SOLVED] Excel opens all files in My Documents folder
    By Dave B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2005, 11:06 PM

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