+ Reply to Thread
Results 1 to 6 of 6

macros to list all files in folder THEN get info from files?

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    ottawa, canada
    MS-Off Ver
    2010
    Posts
    22

    macros to list all files in folder THEN get info from files?

    Hi all,

    New to this forum, been banging my head against the wall on this one, thought I would turn to the pros!

    I would like to create a macro that would get a list of all the files in a folder, and if possible have the option of also searching in subfolders at the same time.

    I would like it to return file name, file path, date modified, file size, file extension as well, in separate columns.

    Here is the SUPER tricky part that would make this the cat's meow.

    After populating the list:

    For all files -> make file path a hyperlink.

    For html files -> create a new column that would have the information found between the html title tags?

    Big thanks!

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: macros to list all files in folder THEN get info from files?

    I have not included the HTML Part. Leith Ross Knows how to do it. I have seen him done it before.
    Here is the code:-
    Please Login or Register  to view this content.
    Write headings manually on first row. and Paste the Code by inserting a module in the VBA window and Press F5 to run Fetching_Hyperlinking macro it.
    Last edited by Vikas_Gautam; 02-20-2015 at 10:37 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  3. #3
    Registered User
    Join Date
    02-19-2015
    Location
    ottawa, canada
    MS-Off Ver
    2010
    Posts
    22

    Re: macros to list all files in folder THEN get info from files?

    That is straight up perfect. works very well

    How would I make a cell the target folder path? Is it also possible to have a toggle switch for whether or not to list files in subfolders?

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: macros to list all files in folder THEN get info from files?

    Here is the required code:-
    HTML Code: 
    Click the button in the attached file:-
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-19-2015
    Location
    ottawa, canada
    MS-Off Ver
    2010
    Posts
    22

    Re: macros to list all files in folder THEN get info from files?

    This helps a lot. I have added it into the macro I need to work, but I have one more question. I have to process the links to point to our external site, no local server. I can clean up the cell value, but how to I update the hyperlink path to it?

    Here is my macro

    Please Login or Register  to view this content.
    Thanks!

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: macros to list all files in folder THEN get info from files?

    Right click on the hyperlink cell. You will find the "Edit Hyperlink" Option. Try tweaking that.

+ 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: 1
    Last Post: 01-28-2019, 06:55 PM
  2. Replies: 2
    Last Post: 02-10-2014, 11:52 AM
  3. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  4. search list of files in a folder and paste a image from activesheet and paste to files
    By khan.washik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2012, 01:37 PM
  5. Noob 4 Help - Macro to LIST ALL FILES IN FOLDER and then IMPORT ALL LISTED FILES
    By StlSmiln in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2012, 04:02 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