Link to home
Start Free TrialLog in
Avatar of tortcat
tortcat

asked on

word doc..missing toolbar

One of our users has a really strange problem. When he brings up word he gets what looks like a full page document view..with no tool bars at all across the top.

1) NO...simply right clicking to make the toolbar doesnt work
2) There appears to be no hidden toolbar arrow anywhere to bring it up
3) Microsoft is stumped and cant seem to figure it out either
4) The only way he can print is to use keyboard shortcuts
5) This is office 2000 premium

Nothing that can be found in the help files seems to be able to bring back the tools bars. They all refer to right clikcing ( wont work) ..no function key shortcuts bring it back.

End User is frustrated..his computer was like this when he came back from the weekend.

PLEASE read the post before answering...right clicking will not work and no where in the document is a hidden arrow for a toolbar.

Office 2000 was completely uninstalled and the dir purged and re-installed ..same problem. Word starts with a full page document with the "ruler" going across the top buts thats it

hope someone can help..it has our IS department and MS stumped
Avatar of calacuccia
calacuccia
Flag of Belgium image

Hi tortcat,

Try to do the following from inside Word:

1) Alt+F11 to open the Visual Basic Editor

2) Put following module somewhere (for example in the Norma.dot):

Sub restore()
Application.CommandBars("Menu Bar").Enabled = True
End Sub

3) From inside Visual Basic Editor, run the module (F5, or Run from the VBE menu)

OR

Go back to Word, press Alt+F8 and select the restore macro appearing in the list.

4) Now check Word to see if you got something back.

5) From there, you can right-click on the menu bar, to add the other Menu items (Standard/Formatting/....)

Hope this helps

Calacuccia
Avatar of tortcat
tortcat

ASKER

well cal I tried this..and even though I set it up exactly as u have shown I get an

"error 5  invalid procedure call" when trying to execute it.

and then even though it does make a restore  macro ...when u try to run it it says compile error
Hi Tortcat,

The "error 5 invalid procedure call" means that Word doesn't recognise the CommandBars("Menu Bar" argument, so it does not exist (any more).

Are you using an English version, maybe the name to use (between quotation marks) is different.

Anyway,

try to put followong macro in the Visual Basic Editor, as above:

For Each cbar In CommandBars
    Debug.Print cbar.Name, cbar.NameLocal, cbar.Visible, cbar.Enabled
Next

Now in VBE, go to 'View/Immediate Window' or use Ctrl+G and run the macro (F5 or run).

Now on the bottom, in the immediate window, you should see a list of CommandBars with their Name, LocalName, Visible state, Enabled state.

If you find something alike "Menu Bar", try my first mentioned macro (Application.CommandBars("Menu Bar").Enabled = True) with a name you found.

Let's hope that helps you.

Calacuccia
Avatar of tortcat

ASKER

Sub restore()
Debug.Print cbar.Name, cbar.NameLocal, cbar.Visible, cbar.Enabled
Next
End Sub



this is what I tried to put in but i get an error

compile error
Next without for


You forgot the first line:

Sub restore()
For Each cbar In CommandBars
      Debug.Print cbar.Name, cbar.NameLocal, cbar.Visible, cbar.Enabled
Next
End Sub


Calacuccia
Avatar of tortcat

ASKER

well i mist admit..im totaly stumped...

I ran this macro on my system..works fine and I see the menu bar in the print

when i go and try and run it on the affected individuals system..

It runs ok..but there is no menu bar showing up...itis missing hence the reason the macro doesnt run from the restore  and this is even after a completely fresh install was done of office

im at a loss here



Avatar of tortcat

ASKER

increased points to 250
OK Tortcat,

I see one possible fix, since everything has been erased.

We are going to build a new menu bar:

Make follwoing macro and run it (F5 or Run) or run it from inside Word (as I explained in first comment, Alt+F8, select MakeBar):

Sub MakeBar()
Set menubar = CommandBars.Add _
    (Name:="mBar", Position:=msoBarTop, menubar:=True)
With menubar
    .Protection = msoBarNoMove
    .Visible = True
End With
End Sub

Now go to Word, you should see a blank menu bar.

Right-click on it, select customize, go to tab Commands, scroll down for 'Built-in Menus' and now for each wanted built-in menu (on the right) drag and drop it on the blank menu bar.
Typically, that would be (in order), File, Edit, View, Insert, Format, Tools, Table , Window and Help (the last 2 are very little known)

Now click close and test your new menu bar.

Good Luck,

Calacuccia
This might work, who knows..

Copy the 'normal.dot' from someone else's (someone working) PC and use the new one to over write the 'broken' copy on your PC.
Calacuccia's doing a sterling job. However, though you said you purged the system, has there been a history of viruses on that workstation? It may be that a nasty virus is deleting your Menu Bar when you launch Word - so even a reinstall wouldn't help with this.

I don't actually know whether it is possible to "delete" a built-in commandbar or whether it will return an error if tried in code. In either case, I don't want to try it in case it does delete mine :-) ....well, I've just tried it actually on my spare PC and it does return a run-time error.

So you can ignore this whole comment as even a virus wouldn't be able to get at this one.
Try to find in registry
HKEY_CURRENT_USER
 |
 SOFTWARE
  |
  Microsoft
   |
   Office
    |
    9.0
     |
     Word
      |
      Data -> Toolbars parameter

and compare its value to same on other computer.
As an addition to Calacuccia last suggestion: you can create a new Menu Bar that way, and you might even convince Word to restore it itself, by adding the following line into the 'With' construction in Calacuccia's code:

    .Reset 'Resets Commandbar to default
FlorisMK - Your suggestion would normally work but the "Menu Bar" is not listed by Word as an installed component - and there's the rub.

Although we seem to be arriving at a solution that will overcome the problem, we are not really answering how a builtin menu bar (which normally cannot be deleted) can be deleted even after a reinstall. Has anyone got any ideas as to what could actually be causing it.

As the problem initially occurred over a weekend (and the PC was presumably working OK prior to that), is there any log as to that PCs activity over the weekend (i.e. users who have logged on, administrator activity, internet activity)?
Avatar of tortcat

ASKER

no..there is no log.....we have tried your suggestions (thank you) but while rebuilding a menu bar did add a menu bar...it would crash every time the user tried to use it..

Microsoft was brought into the picture again..and was totally stumped also as according to them a tool bar should not disappear.

The system was completely wiped and fdisked and formated..and was restored from a 2 week backup and is now functioning again.  why this happened I do not know.  There was no virus that could be detected by the way

I must admit I am totally stumped on this one.



Avatar of tortcat

ASKER

no..there is no log.....we have tried your suggestions (thank you) but while rebuilding a menu bar did add a menu bar...it would crash every time the user tried to use it..

                   Microsoft was brought into the picture again..and was totally stumped also as according to them   a tool bar should not disappear. Unfortunately the end user had to have a fully functioning system.

                   The system was completely wiped and fdisked and formated..and was restored from a 2 week   backup and is now functioning again.  why this happened I do not know.  There was no virus
                   that could be detected by the way

                   I must admit I am totally stumped on this one.
Avatar of tortcat

ASKER

This question has a deletion request Pending
Avatar of tortcat

ASKER

Users gave excelelnt advice but the problem remained unsolved. The system had to be be fdisked and formated and restored from a 2 week old backup to get to function.

The comments were excelent ..and even Microsfot was stumped as tom why this happened but the end result was the user had to have their system back up...

kind of like nuking a mosquito for  solution but it was more important to get the user up at this point.
Avatar of tortcat

ASKER

geez ..and excuse my horrible spelling please
This question no longer is pending deletion
So, did Microsoft say they were going to look into it? Or did they just say that it's probably your hardware/software config? Normally, when I've had the misfortune to have ever contacted Microsoft, I always wished I hadn't 'cos they just fobbed me off by saying that it's something on my PC.

From Dedushka's comment, I would say that somehow your registry got fried. Ho-hum, delete away.

But, if it ever happens again, one thing that you could try is using the command line switch /regserver i.e. Winword.exe /regserver. This would force Word to rewrite its registry settings.
Avatar of tortcat

ASKER

Nog..

Microsoft opened up some kind of a special call on it...( i was not the one to speak to them) although I do know that the regserver command was tried by one of the guys here and did not work
Oh well, worth a try, I s'pose. If you find out what Microsoft say on the problem later, would you fancy raising another q for 0 points informing us what the cause of the problem was (and the solution)? I think we would all be interested.
Avatar of tortcat

ASKER

yes i will   The Is people here are also very interested because everyone involved seems to think that this should not have been able to happen
Cheers. Now who's up for a sweepstakes on how long it takes MS to find the cause :-) ? I say 2 weeks.
Two weeks?
I'll see your two weeks and raise you four!
FlorisMK - When I said two weeks, I was implying the usual as far as MS is concerned i.e. "2 weeks....into the next Millennium" :-)
tortcat -- by any chance are you running PCDOCS 3.7.2??  We are having toolbar issues here and it appears to be a DOCS issue, not Word...
Avatar of tortcat

ASKER

This question has a deletion request Pending
This question no longer is pending deletion
ASKER CERTIFIED SOLUTION
Avatar of darinw
darinw

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
klyjen

We have had missing toolbar issues with PCDOCS when making DOCS API calls.  Have you managed to find a solution??

I should have been clearer when I posted the 'answer'. The solution was to completely wipe the machine and restore from an old back up.

Comment  
From: tortcat
 Date: Monday, January 31 2000 - 07:47AM CST  
.... The system was completely wiped and fdisked and formated..and was restored from a 2 week   backup and is now functioning again.  ...
Removing the Word Data Key from the registry might solve this problem off the bat. (The solution here is not a solution, since the ENTIRE machine was wiped.)

It should be found at:
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data

Rename the key Toolbars (Editing the Registry is serious. Before you edit the registry, you should first make a backup copy of the registry files (System.dat and User.dat). Both are hidden files in the Windows folder.)to TlbrBackup. Restart word. It should build a new Toolbar Reg key and you'll be fine.

d


> (The solution here is not a solution, since the ENTIRE machine was wiped.)

I probably should have put quotes around "solution", but as I said, I saved the question because of the effort involved and, ultimately, the solution was to start fresh - sometimes a valid, if drastic, solution.

3 years ago we, Customer Service, didn't have the ability to change points on questions or I would have made it zero points and saved it to the PAQ myself instead of asking the posting member to do it.

darinw
Long Ago Customer Service Guy

I just had exactly the same problem using Office 2000 under Windows 98.

I was able to copy the registry key:

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data

from a different machine that was not having the problem.

Now Word starts up normally again.  I am concerned that this was the result of a virus that may still be present.  Has there been any word from Microsoft about this problem?

M

per Lion-AdvMedia


Removing the Word Data Key from the registry might solve this problem off the bat.  It should be found at:
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data. Rename the key Toolbars to TlbrBackup. Restart word. It should build a new Toolbar Reg key and you'll be fine.


We had a computer show this problem today.  I did the rename and Word was back to normal.
I've been trying to solve this problem ofthe missing toolbar and came across an answer on another message board, and it works.

The missing toolbar somehow dragged itself off the screen but it's still there.  If you start recording a macro, drag any remaining toolbar to the center of the screen.  Stop the macro.  

Now go and edit the macro and change the name of the toolbar to the name of the one that's missing.  

For example, I dragged the "Standard" menu to the center of the screen.  And edited the macro, changing the name to "Formatting," which was the missing toolbar.

Now execute the macro and the toolbar should pop into the middle of the screen.  

It worked like magic for me.  I've been looking for a way to get the toolbar back for months and this did it.