Results 1 to 2 of 2

Thread: Status Bar

  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Sydney, Australia
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Status Bar

    Anybody know how to add details to the Word status bar? I'm looking at adding the word count.

    The versions I'm using are Office 97 SR-2 and Win98SE.

    Thanks

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Status Bar

    There isn't any way, directly in Word, to add content to the Status Bar. The Status Bar is not customizable in the way that other toolbars are.

    VBA provides only a simple means to put a message into the Status Bar. Using that, you could get a word count into the Status Bar using a macro like the following, but you would need to trigger the macro every time you wanted to see the word count:

    <pre>Sub DisplayWordCountInStatusBar()
    Dim lngWdCt As Long
    With Dialogs(wdDialogToolsWordCount)
    .Execute
    lngWdCt = .Words
    End With
    Application.StatusBar = lngWdCt
    End Sub
    </pre>

    Note: although technically StatusBar requires a string expression, like the MsgBox function it's 'type-lenient' and will accept numeric expressions too.

    For a much more ambitious word count add-in, see the article by Romke Soldaat entitled "Live Word Stats" in the current (Febuary 2001) issue of Microsoft Office & VBA Developer magazine.

Posting Permissions

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