+ Reply to Thread
Results 1 to 2 of 2

TOtal Drive space formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    TOtal Drive space formula

    I have attached my excel spreadsheet that i need help with. What I am trying to do is create a total of hard drive space used for each hard drive/datastore. For example in my spreadsheet i have the name of my server in one column and then in another column i have the name of the datastore where that server resides on. My wietingdc server has a 45GB hard drive that sits on my DSSSD240 drive. I want to be able to calcualate the amount of used/free space for all of my hard drives.
    Attached Files Attached Files
    Last edited by matty0511; 05-13-2016 at 11:35 AM. Reason: update

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: TOtal Drive space formula

    Did you try google?

    https://support.microsoft.com/en-us/kb/153091
    http://www.mrexcel.com/forum/excel-q...rive-spac.html
    http://www.excelforum.com/excel-prog...remaining.html


    this gets free space remaining, but you have to enable Microsoft scripting Runtime library in references.
    Sub test()
    Dim oFSO As FileSystemObject
    Dim strDrive As Drive
    
    Set oFSO = New FileSystemObject
    Set strDrive = oFSO.GetDrive("C:\")
    MsgBox FormatNumber(strDrive.FreeSpace / 1024, 0)
    
    
    End Sub
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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] Calculate total space usage from spreadsheet
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2014, 07:45 AM
  2. [SOLVED] Need to bypass the drive letter (i.e C Drive) and use the drive name
    By AndyMan81 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-17-2013, 04:48 PM
  3. [SOLVED] Macro to free drive space before saving
    By pedrofogao21 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-25-2012, 12:17 PM
  4. Replies: 6
    Last Post: 06-21-2012, 12:32 PM
  5. Replies: 0
    Last Post: 07-12-2011, 11:30 AM
  6. Getting Amount Free Disk Space On A Drive
    By mrclinker in forum Excel General
    Replies: 2
    Last Post: 05-12-2006, 08:20 AM
  7. Save to hard drive and backup to thumb drive.
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-27-2006, 09:17 AM
  8. [SOLVED] Determining hard drive space remaining
    By Bullfrog1870 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2005, 12:10 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