+ Reply to Thread
Results 1 to 8 of 8

Always show file size

  1. #1
    Registered User
    Join Date
    05-14-2008
    Posts
    4

    Always show file size

    Hi,

    I'm trying to figure out how to display a regularly updated file size on the user interface in Excel 2007. I'm trying to avoid a msgbox popup or similar user interaction.

    I've tried the using the status bar via application.statusbar=size, but it seems like you have to give up the normal status bar functionality to do that.

    Is there a way to keep the normal status bar functionality and just tack on my own string, or are there any other ideas out there for displaying regularly updated information without getting in the way?


    Thanks for your help!

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Always show file size

    nate11000,

    Try:
    Excel 2007: Watch Window Feature!
    http://www.msoffice-tutorial-trainin...ch-window.html
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Always show file size

    Hello nate11000,

    You could use a UserForm with a Label. Adjust the UserFrom to fit around the Label. Make the UserForm non-modal by setting UserForm.ShowModal = False. The code below will remove the close "X" on the UserForm. This way it is constantly displayed and can be updated through code and not closed by the user.

    Remove Close "X" from Window
    Please Login or Register  to view this content.
    UserForm Code Needed
    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!)

  4. #4
    Registered User
    Join Date
    05-14-2008
    Posts
    4

    Re: Always show file size

    Thanks, Leith.

    I was really hoping for something more integrated into the normal interface, but it doesn't seem like that's possible.

    I'll give the userform idea a go and see how it does. Thanks again for your help!

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Always show file size

    Hello Nathan,

    Please include links to other sites where you have post the same or similar question.

    Cross posted here: http://www.thecodecage.com/forumz/ex...el-2007-a.html

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Always show file size

    Should be possible with an addin, .xlam, using code and some ribbonX.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Always show file size

    Here is an example. Adds a group to the Home tab which displays the file size of the active workbook.

    VBA code
    Please Login or Register  to view this content.
    Class CAppEvt code
    Please Login or Register  to view this content.
    Ribbon XML
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-26-2011
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2007 (w) & 2010 (h)
    Posts
    1

    Re: Always show file size

    Wow, Andy, you are a genius! Thanks for killing my confidence and pride in my skills!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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