As the title says, I'm looking for a macro that I can direct to a specific directory and have it pull its folders name and its folder size, not item or file size. Was wondering if anyone had any expertise in this area?
Please hit me up. Thank you.
As the title says, I'm looking for a macro that I can direct to a specific directory and have it pull its folders name and its folder size, not item or file size. Was wondering if anyone had any expertise in this area?
Please hit me up. Thank you.
Hello TheDirtyDrunk,
This macro will list the names of all folders in a given parent directory on "Sheet1" starting with cells "A2:B2". It is assumed row 1 contains headers.
System folders do not list their size. Only Zip Folders do.
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!)
You could get the subfolder size if you add the function "FolderSize" written by RoyUK (I think) but first you need to add some lines to Leith's macro. So change line
toPlease Login or Register to view this content.
Then you add lins afterPlease Login or Register to view this content.
toPlease Login or Register to view this content.
Finnaly after the "End Sub" line you add code for the FolderSize functionPlease Login or Register to view this content.
AlfPlease Login or Register to view this content.
THanks everyone,
I was able to pull this together to generate a list with file size in bytes
Its dirty but it got the job done.Please Login or Register to view this content.
Last edited by TheDirtyDrunk; 07-07-2016 at 08:03 AM.
You are welcome.
Thanks for feedback and rep
Alf
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks