Dear Dave,
Thanks for your interest and effort,
I tried only this part of your code:
> Option Explicit
> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
> MsgBox "Please click the button to save!"
> Cancel = True
> End Sub
on a new empty workbook (I just copied above text to Thisworkbook
Module). But I guess, I did something wrong. Now whenever I close
excel(!) and reopen it, no command bars, or right-click menus ever
appear again (probably related somehow with my previous macro). I know
it is nothing to do with your codes but I can not open any file
anymore nor can I close except for using close button(x). And that
time it asks "Please click the button to save!". Yeah definitly that
party works and it doesn't save anything at the end even though I give
a file name when it is asked by the second warning.
Now the problem is worse. First things first, please help me recover
my excel !! :)
botcan - 25 Mar 2007 18:52 GMT
> Dear Dave,
>
[quoted text clipped - 20 lines]
> Now the problem is worse. First things first, please help me recover
> my excel !! :)
I decided to leave this saving matter (if and ever I can recover my
excel), because I understood I'm an idiot in excel programming which
needs real experience and training on this subject. I'm too far from
both of them :)).
I will appreciate if David, Nick or somebodyelse would help me recover
my excel and then I will leave it up.
Thanks to David and Nick for their immediate interests and replies.
Dave Peterson - 25 Mar 2007 19:35 GMT
The code you used in that new workbook didn't do the bad stuff. It just won't
let you save the workbook with that code in it without doing something special
(disabling events is one way).
But since you disable the toolbars in your other workbook, you have to turn on
what you turnned off (enable those controls) when your workbook closes--or even
when you switch workbooks.
One way to get all your toolbars back to factory defaults is this:
close excel
windows start button|search
look for *.xlb
Look in hidden folders, too.
Then move it, rename it to *.xlbOLD, or even delete it.
When you reopen excel, you'll have to change all the settings you want changed.
======
If you've customized lots and lots of toolbars, you may want to try running the
workbook_open event, but changed the enabled property from false to true.
> Dear Dave,
>
[quoted text clipped - 20 lines]
> Now the problem is worse. First things first, please help me recover
> my excel !! :)

Signature
Dave Peterson