Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba that give you folders size


how can i get the size of folders that exists in a folde

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default vba that give you folders size

George,

In VBA, go to the Tools menu and choose References. There, check the box
next to "Microsoft Scripting Runtime" and use code like the following:

Dim FSO As New Scripting.FileSystemObject
Dim F As Scripting.Folder
Set F = FSO.GetFolder("C:\Temp")
Debug.Print F.Size


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"GEORGEBEKOS" wrote in message
...

how can i get the size of folders that exists in a folder


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



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
Skipping Folders Tom Moffatt[_2_] Excel Discussion (Misc queries) 0 June 2nd 08 07:32 PM
Changing Folders! Philip J Smith Excel Worksheet Functions 0 December 7th 07 03:38 PM
Give RELEVANT responses to questions. DO NOT give usless list pmartin Excel Worksheet Functions 2 July 6th 06 06:08 PM
Keep different views for different folders, not the same for all? Scott531 Excel Discussion (Misc queries) 0 June 28th 06 09:36 PM
Linking to folders Sidnoir Excel Discussion (Misc queries) 1 August 4th 05 06:14 PM


All times are GMT +1. The time now is 12:07 PM.

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

About Us

"It's about Microsoft Excel"