Consulting

Results 1 to 3 of 3

Thread: Solved: File Property

  1. #1
    VBAX Mentor anandbohra's Avatar
    Joined
    May 2007
    Location
    Mumbai
    Posts
    313
    Location

    Solved: File Property

    Friends

    do any one of you have code for getting file size in one click
    Say i press a button or execute a macro thorugh Key board code & it displays the message
    Active File Name: (file Name)
    File Size : ( XXX MB)

    This i need because i make the Master file which is linked to 3-4 workbooks so I want myself to be update on file size otherwise it will slow down my work insted of speed up
    Always Mark your Thread as Solved the moment u got acceptable reply (located under Thread tools)
    Practice this & save time of others in thinking for unsolved thread

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This works upon the last saved version, so best to save it first

    [vba]

    Set wb = Workbooks("workbook_name.xls")
    MsgBox Format(FileLen(wb.FullName), "#,##0,Kb")
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor anandbohra's Avatar
    Joined
    May 2007
    Location
    Mumbai
    Posts
    313
    Location
    Thanks XLD
    for such a quick & accurate response.
    Always Mark your Thread as Solved the moment u got acceptable reply (located under Thread tools)
    Practice this & save time of others in thinking for unsolved thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •