Hi all, so I am wondering if anybody can help me fix a problem. I have a sheet that when "workbook_open" its suppose to hide ribbon, headings, formula bar, tabs etc.. Which it does perfectly. The problem is that it is not going back to normal when I close. Below is the workbook_close VBA. Any help would be greatly appreciate it. And while I am at it, is there a way to hide all of the mentioned only for the workbook instead of all other excels opened while this one is open?
Code:
Sub workbook_Close()
Worksheets("PastedReport").Visible = xlSheetVisible
Worksheets("PastedReport").Cells.ClearContents
Worksheets("PastedReport").Visible = xlSheetVeryHidden
Worksheets("Sheet2").Visible = xlSheetVeryHidden
Worksheets("Sheet3").Visible = xlSheetVeryHidden
Sheets("Home").Visible = True
Sheets("Home").Select
ThisWorkbook.Saved = False
Application.ScreenUpdating = False
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
Application.DisplayStatusBar = True
ActiveWindow.DisplayWorkbookTabs = True
Application.DisplayFormulaBar = True
Application.ScreenUpdating = True
End Sub
Last edited by a moderator: