Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Apr 2002
    Location
    Stone Ridge, New York, USA
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A 2nd Close Window 'X' Box in Menu Bar (2000)

    Hello,

    Somehow I have wound up with not only the Close "X" box in the main title bar (Blue bar) of my document/template windows, but there is also one in my Menu Bar (File, Edit, View... Bar) all the way in the right corner just underneath the regular Close "X" box that has always been there.

    The top box is labeled Close and the bottom one is labeled Close Window.

    When I click on the second one (the lower one, in the Menu bar) it causes the document to close but not the actual Window to close - then I have to click on the upper remaining "X" box to close Word/the Window. If I click on the top X box first and then say I want to save, Word crashes.

    The appearance of this f**king box seemed to coincide with my locking a Custom Toolbar I created into place by opening the VBA Editor Immediate window and using
    CommandBars("My Toolbar Name").Protection = msoBarNoMove
    to set the Toolbar to be immovable.

    I have tried resetting the menu bar to get rid of the second X box - no luck.
    I have gone in and unset my Toolbar so it is moveable by using CommandBars("Standard").Protection = msoBarNoProtection in the Immediate window - no luck.
    I have started Word from the RUN/START menu with no add-ins, templates, etc. the damn X box is still there.

    This is now happening on every document and template I have in my system!

    I NEED HELP! PLEASE!

    Thanks,

    Sherry

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A 2nd Close Window 'X' Box in Menu Bar (2000)

    Sherry,

    The second X, the one in the menubar should only be there when you have only a single document open.

    If you have more than one doc open, you won't get that.

    To close Word with a single click, just click the x in the Title bar, the top most one. That will close the document AND Word.

    Since it is crashing Word, I'd say suggest that you have a problem with your Word Installation, or related files.

    Have a look at the <!post=Systematic Approach to Behavioral Problems in Word (Word 97/2000), 197827>Systematic Approach to Behavioral Problems in Word (Word 97/2000)<!/post> post to help troubleshoot where your problem is.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    Star Lounger
    Join Date
    Apr 2002
    Location
    Stone Ridge, New York, USA
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A 2nd Close Window 'X' Box in Menu Bar (2000)

    Hi Bryan,

    Yes, the second X box does go away when I open a 2nd document. But I don't believe it was ever there before I messed with setting my Custom Toolbar to be immovable. In any case, is there a way to get rid of it?

    Thanks.

    Also, I've done Steps 1 and 2 in the Systematic Approach... with no changes. I'm trying to avoid going to Step 4.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: A 2nd Close Window 'X' Box in Menu Bar (2000)

    There have been some threads in the Lounge on how to disable the X buttons, so as not to defeat a document management system, for example. But I don't recall whether any of them contained code to hide the button.

    I checked the CommandBars("Menu Bar").Controls collection to see if the X button was in there, but I didn't find it. Off the top of my head, I don't know how to get at it. I tried this in the ThisDocument portion of a document, but the object is Nothing.

    <pre>Private Sub Document_Close()
    Stop 'press F5
    Dim cbCtrl As CommandBarControl
    Set cbCtrl = CommandBars.ActionControl
    Stop 'check locals window
    End Sub</pre>

    Hope you find it.

  5. #5
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A 2nd Close Window 'X' Box in Menu Bar (2000)

    Sherry,

    I'm pretty sure it always was. I don't ever recall seeing a Word 2K installation that didn't do this..

    That being said, I would highly recommend that you do step 3 and 4 of the Systematic Approach....

    If that doesn't work, then I would suggest you do a Detect and Repair (from the help menu).

    Ohter than that, I'm clean out of suggestions.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  6. #6
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: A 2nd Close Window 'X' Box in Menu Bar (2000)

    To get at the second x, I would suspect that you'd have to resort to API calls, but I don't know which ones.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

Posting Permissions

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