+ Reply to Thread
Results 1 to 6 of 6

Count only the current folders in a folder, skip hidden & system folders

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Count only the current folders in a folder, skip hidden & system folders

    I found this code which count only the current folders, but also count the hidden folders
    How can I fix it to not count hidden & system folders

    Please Login or Register  to view this content.
    Last edited by CobraLAD; 03-03-2015 at 01:18 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Count only the current folders in a folder, skip hidden & system folders

    Hello CobraLAD,

    This will count only "normal" folders.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Count only the current folders in a folder, skip hidden & system folders

    Thank you Leith

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Count only the current folders in a folder, skip hidden & system folders

    Hello CobraLAD,

    You;re welcome. Did you need to count the sub-folders also?

  5. #5
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Count only the current folders in a folder, skip hidden & system folders

    Yes I actually wants to have 4 options

    1. count only normal folders in one folder
    2. count only normal files in one folder

    then with a checkbox "Include subfolders" it must then
    3. count all subfolders and skip all hidden folders (usually windows & documents folder)
    4. count all normal files in all subfolders

    I am busy putting it together. If I don't get it right, I will ask, I like to try it myself first

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Count only the current folders in a folder, skip hidden & system folders

    Hello CobraLAD,

    Fair enough.

+ 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. [SOLVED] Create folders and Sub folders and Sub-Sub folders from 5 columns with VBA
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2014, 04:16 PM
  2. [SOLVED] Opening folders inside of folders and pulling data from sheets present.
    By randomguy1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2013, 10:57 PM
  3. Replies: 1
    Last Post: 09-12-2013, 09:23 PM
  4. Recursively Count Files in Folders and Sub-Folders
    By cdeshaz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2013, 01:15 PM
  5. Replies: 0
    Last Post: 12-04-2012, 01:01 PM

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