+ Reply to Thread
Results 1 to 3 of 3

File Attributes

  1. #1
    Forum Contributor
    Join Date
    11-23-2004
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    235

    File Attributes

    Please can anybody assist with listing File Attributes from a folder I need to list.
    The following code is super quick at listing filenames but I need to show other file details.
    Here is the code I am trying to use and am stuck trying to list the file Mb, Date, Length Attributes etc.

    Please Login or Register  to view this content.
    Many thanks.
    Last edited by sparx; 09-27-2015 at 01:10 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: File Attributes

    Suggest using the file scripting object as described in

    http://windowssecrets.com/forums/sho...m-VBA-in-Excel
    Martin

  3. #3
    Forum Contributor
    Join Date
    11-23-2004
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    235

    Re: File Attributes

    Thank you for your suggestion, unfortunately it did not help me work out how to find one particular attribute, the file audio duration.
    For anybody else looking at this thread, I did find help and have altered my code as follows.

    Please Login or Register  to view this content.
    Thank you to mrice for your assistance.
    Last edited by sparx; 09-27-2015 at 04:00 PM. Reason: Pressed the Enter button too soon.

+ 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. Macro to get file attributes - length
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2015, 12:51 PM
  2. setting file attributes on close
    By Karolis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-21-2010, 03:25 AM
  3. [SOLVED] Getting NTFS file attributes
    By Kiran in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 04:05 PM
  4. [SOLVED] More File Attributes needed
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2005, 09:40 PM
  5. [SOLVED] File Attributes
    By mworthington@ntlworld.com in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-30-2005, 03:06 AM
  6. [SOLVED] Filecopy, file attributes
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2005, 10:06 AM
  7. File Attributes
    By dsti3 in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 02:06 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