+ Reply to Thread
Results 1 to 4 of 4

Find a certain folder

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Find a certain folder

    Hello people


    I got following folderstructure for my order numbers see picture below:

    LxlnoJW.png


    I generate an order number from my excel file, then I need to locate the folder with the ordernr

    Could someone help me to make a code that looking for example the order 32342 msg the folder + path



    Thank you in advance

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Find a certain folder

    Please Login or Register  to view this content.
    Please click the * below if this helps
    Please click the * below if this helps

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Re: Find a certain folder

    What does your script ?

    I think you have misunderstood the things I want.

    All the order numbers are not in the excel file I just call a certain value from a string

    then I need to locate the folder through explorer and do some stuff with the folder named (the string)

    as the picture I view over, I want to find a certain folder(32342 example) in explorer then open the folder

    the problem is I don't know the whole path

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Find a certain folder

    well, if you read my code you see what it does - it finds the location of the folder.
    Replace the specified variable "whut" with an inputbox or refer it to a cell or something.

    You'll have to add in code to open the folder.
    Adjusted code, assuming your order number or whatever is in A1:
    Please Login or Register  to view this content.
    Last edited by JasperD; 06-04-2015 at 10:23 AM.

+ 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] How do you find a folder with VBA
    By xlBunny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2015, 12:39 PM
  2. How do you find a folder with VBA
    By xlBunny in forum Excel General
    Replies: 0
    Last Post: 03-22-2015, 11:13 PM
  3. [SOLVED] VBA Code to find a Folder name within a Parent folder that contains defined text
    By knowga in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-24-2014, 05:17 AM
  4. Replies: 6
    Last Post: 08-11-2006, 03:41 PM
  5. [SOLVED] Find New File/Folder
    By BOONER in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2006, 11:30 AM

Tags for this Thread

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