+ Reply to Thread
Results 1 to 2 of 2

loop trough a folder and get pdf documents also from sub folder but get name of subfolder

  1. #1
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    loop trough a folder and get pdf documents also from sub folder but get name of subfolder

    Hi all,

    I have a macro to list all PDF files on a selected folder, even if there are subfolders there.
    The only thing I actually need to add is the name of the subfolder where the PDF file is.

    (all subfolders start with a nr in front of it, like: 01 - Primary documents) If a PDF file would be in a folder like 01 - Primary Documents, then I need to add the name of the subfolder too to the sheet.
    Now I only get the path where all the PDF files are and not the subfolder.
    something like: C:/Documents/126374Peter.pdf
    I would like to have it like this: C:/Documents/01 - Primary Documents/126374Peter.pdf

    This is my current code:

    Please Login or Register  to view this content.
    Greetings.

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: loop trough a folder and get pdf documents also from sub folder but get name of subfol

    Hi all,

    No one wants to help out?

    Greetings.

+ 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. Replies: 14
    Last Post: 09-18-2016, 08:13 AM
  2. Replies: 2
    Last Post: 12-29-2015, 04:19 AM
  3. [SOLVED] Loop Through Folder, Create Emails with Sub Folder Names in Subject, Attach files in sub
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2015, 10:06 AM
  4. Replies: 12
    Last Post: 03-09-2015, 05:52 PM
  5. Performing Find loop on all Word documents in a folder, writing results to a Spreadsheet
    By fraanchtoast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 05:02 PM
  6. Macro to Create Folder\Sub Folder\SubFolder\
    By coolhit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2012, 12:43 PM
  7. Creating Folder Folder in My Documents VBA - HELP
    By Ali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2005, 10:05 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