Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Folder Tree and size

Hi all,

I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.

I'm not good at writing VB code, but can follow it a bit.

TIA Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Folder Tree and size

Paul,

In the module "modFolderTree", search for the lines (about line numbers
335 - 340)

If FullPaths = True Then
Dest.Value = FolderObj.Path
Else
Dest.Value = FolderObj.Name
End If

and replace them with the following:

If FullPaths = True Then
Dest.Value = FolderObj.Path & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
Else
Dest.Value = FolderObj.Name & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
End If

I might make including the folder and/or file size an additional option on
the form. Its a good idea.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)

"Paul" wrote in message
ups.com...
Hi all,

I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.

I'm not good at writing VB code, but can follow it a bit.

TIA Paul


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Folder Tree and size

I put a new version of the XLA file on the site at
www.cpearson.com/excel/foldertree.htm . It gives you the option to display
folder and/or file sizes in bytes, KB, or MB.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)

"Chip Pearson" wrote in message
...
Paul,

In the module "modFolderTree", search for the lines (about line numbers
335 - 340)

If FullPaths = True Then
Dest.Value = FolderObj.Path
Else
Dest.Value = FolderObj.Name
End If

and replace them with the following:

If FullPaths = True Then
Dest.Value = FolderObj.Path & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
Else
Dest.Value = FolderObj.Name & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
End If

I might make including the folder and/or file size an additional option on
the form. Its a good idea.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)

"Paul" wrote in message
ups.com...
Hi all,

I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.

I'm not good at writing VB code, but can follow it a bit.

TIA Paul



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Folder Tree and size

Thanks for the quick responses.
I will download the new xla file and try now.
Much appreciated.

cheers Paul

On Mar 14, 12:35 pm, "Chip Pearson" wrote:
I put a new version of the XLA file on the site atwww.cpearson.com/excel/foldertree.htm. It gives you the option to display
folder and/or file sizes in bytes, KB, or MB.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLCwww.cpearson.com
(email on the web site)

"Chip Pearson" wrote in message

...



Paul,


In the module "modFolderTree", search for the lines (about line numbers
335 - 340)


If FullPaths = True Then
Dest.Value = FolderObj.Path
Else
Dest.Value = FolderObj.Name
End If


and replace them with the following:


If FullPaths = True Then
Dest.Value = FolderObj.Path & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
Else
Dest.Value = FolderObj.Name & _
" (" & Format(FolderObj.Size / 1048576, "###,0 MB") & ")"
End If


I might make including the folder and/or file size an additional option on
the form. Its a good idea.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)


"Paul" wrote in message
oups.com...
Hi all,


I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.


I'm not good at writing VB code, but can follow it a bit.


TIA Paul- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Folder Tree and size

Paul,
The free "List Files" Excel add-in program provides file and folder size
with the list as well as the date.
You can create a list with files and folders or just a list of folders.
Download from... http://www.realezsites.com/bus/primitivesoftware
No registration required.
--
Jim Cone
San Francisco, USA


"Paul"
wrote in message
Hi all,
I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.
I'm not good at writing VB code, but can follow it a bit.
TIA Paul



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Folder Tree and size

Thanks Jim,
This is an excellent product.
Cheers Paul

On Mar 14, 11:11 am, "Jim Cone" wrote:
Paul,
The free "List Files" Excel add-in program provides file and folder size
with the list as well as the date.
You can create a list with files and folders or just a list of folders.
Download from...http://www.realezsites.com/bus/primitivesoftware
No registration required.
--
Jim Cone
San Francisco, USA

"Paul"
wrote in message
Hi all,
I have used Chip Pearsons Dir Tree, which is great, however I need
some code that tells me how much MB is used in a directory level that
I choose.
Can any one help me with this please.
I'm not good at writing VB code, but can follow it a bit.
TIA Paul



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Folder Size vqthomf Excel Programming 10 September 11th 06 01:26 PM
Folder Size/File Count DMc2004 Excel Programming 2 August 2nd 06 07:59 AM
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? Subteam Excel Discussion (Misc queries) 2 May 7th 06 08:14 PM
Folder Size Andibevan[_2_] Excel Programming 3 June 1st 05 03:42 PM
Designate a folder as the root of the Browse tree kiwichico Excel Programming 0 October 1st 03 10:16 PM


All times are GMT +1. The time now is 06:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"