+ Reply to Thread
Results 1 to 4 of 4

VBA code to search Sub-Folder containing String

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2007
    Posts
    70

    VBA code to search Sub-Folder containing String

    Hi,

    Please help me with a VBA code to open a sub-folder contains string "TD-2646" in the full name "TD-2464 CE Braking Stability"

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA code to search Sub-Folder containing String

    Something like this should get you going in the right direction. DIR() command to the rescue.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2007
    Posts
    70

    Re: VBA code to search Sub-Folder containing String

    Please find the next post.
    Last edited by mashiulalam; 11-21-2019 at 09:31 AM.

  4. #4
    Registered User
    Join Date
    02-01-2016
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2007
    Posts
    70

    Re: VBA code to search Sub-Folder containing String

    Hi JB,

    Thanks but it opens only "My Computer>Documents" not the desired C:\Test\TD-2464.

    Regards,

    Mashiul

+ 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. [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. Search Folder for text within string
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2019, 11:33 AM
  3. Search for a string on all excel files inside a ZIp folder
    By Moreno20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2014, 03:45 PM
  4. Want to search for string in list of files in a folder
    By DeepthiReddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 03:21 AM
  5. Case insensitive search for string within folder of excel files
    By vba_novice in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-22-2011, 11:21 PM
  6. Parse String For Folder Search
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2010, 05:43 PM
  7. 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

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