I'd actually edit the Open event to include the exact same code as the Activate.
This way if the workbook is saved and closed on the Talent sheet, when it opens it pops with those same adjustments.
Private Sub Workbook_Open()
If ActiveSheet.Name = "Talent" Then
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",false)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
Else
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",true)"
Application.DisplayFormulaBar = True
ActiveWindow.DisplayHeadings = True
End If
End Sub
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
If ActiveSheet.Name = "Talent" Then
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",false)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
Else
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",true)"
Application.DisplayFormulaBar = True
ActiveWindow.DisplayHeadings = True
End If
End Sub
or maybe even
Private Sub Workbook_Open()
RibbonToggle
End Sub
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
RibbonToggle
End Sub
Sub RibbonToggle()
If ActiveSheet.Name = "Talent" Then
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",false)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
Else
Application.ExecuteExcel4Macro "show.toolbar(""Ribbon"",true)"
Application.DisplayFormulaBar = True
ActiveWindow.DisplayHeadings = True
End If
End Sub
Bookmarks