+ Reply to Thread
Results 1 to 3 of 3

Macro to get file attributes - length

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    266

    Macro to get file attributes - length

    I am using the macro below to list all specified video files in a directory.

    What I am looking to add is to get the "length" of each video file to display starting in cell D4 on down. This is a file attribute invoked using the "namespace" command, and I also know the file attribute number for length is 27. Any ideas how to implement it in this macro? Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Macro to get file attributes - length

    The approach can be similar to GetDetailsOf examples at. http://www.snb-vba.eu/VBA_Bestanden_en.html

    You can use this to get all property types.
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 07-24-2015 at 12:51 PM.

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Macro to get file attributes - length

    Hi Brawnystaff,

    The following code may help you:
    Please Login or Register  to view this content.
    For additional information see: http://www.techbookreport.com/tutorials/fso1.html
    The following pdf file documentation is rather long, but is very good: http://www.indusoft.com/Documentatio...ad&EntryId=134

    I hope this helps.

    Lewis

+ 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. Picking up Image Attributes from Folder File
    By gcarterm in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-18-2012, 02:35 AM
  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. More File Attributes needed
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2005, 09:40 PM
  5. Attributes in excel shared file
    By akumar118 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2005, 08:23 AM
  6. [SOLVED] [SOLVED] File Attributes
    By mworthington@ntlworld.com in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-30-2005, 03:06 AM
  7. [SOLVED] Filecopy, file attributes
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2005, 10:06 AM
  8. File Attributes
    By dsti3 in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 02:06 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