Results 1 to 4 of 4

VBA Get File Attributes !!!!

Threaded View

QuintonMcCloud VBA Get File Attributes !!!! 04-03-2017, 07:50 AM
xlnitwit Re: VBA Get File Attributes... 04-03-2017, 08:05 AM
QuintonMcCloud Re: VBA Get File Attributes... 04-03-2017, 09:21 AM
xlnitwit Re: VBA Get File Attributes... 04-03-2017, 09:41 AM
  1. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA Get File Attributes !!!!

    I do not see any immediate bottlenecks although this part
            Set objFolder = objShell.Namespace(oFolder.path)
    does not need to be run for each file in the folder- and similarly in the recursive routine this part
                Set objFolder = objShell.Namespace(oFolder.path)
    especially as it has already been set properly using
    Set objFolder = objShell.Namespace(SubFld.path)
    It is possible there may be a faster API function that could be useful (API calls are usually 2-3 times faster than FSO in my experience) but I am unaware of which one might return the last 4 information items.
    Last edited by xlnitwit; 04-03-2017 at 09:48 AM.

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
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2015, 07:12 PM
  2. File Attributes
    By sparx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2015, 03:53 PM
  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

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