Menu Bars etc. setting.
Posted by Michele on August 16, 2001 3:22 AM
In my file "DRIVER" I have the following code in "ThisWorksheet", "Open" and it works fine.
Application.CommandBars(1).Enabled = False
Application.CommandBars("Worksheet Menu Bar").Enabled = False
Application.CommandBars("Standard").Visible = False
Application.CommandBars("Formatting").Visible = False
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
This DRIVER file, upon the user's request will open other files. When these other files are closed, the Command bars are set back to Visible = True in case the files were opened directly - instead of via this DRIVER - and the user should have his normal settings again. However, if the files were opened via the DRIVER, the DRIVER (sheet 1) is back on the screen but the Command bars are visible and I would like to have them NOT visible but I can't get the above code to execute automatically.
Thanks for your help.
Michele