Hello,
I have an Excel workbook with 3 worksheets, running Excel 2016, where upon start-up I run a macro (in ThisWorkbook) to hide the ribbon and formula bar.
Private Sub Workbook_Activate()
Dim ws As Worksheet
Application.ScreenUpdating = False
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
...
End Sub
On worksheet 1 I have a button that calls:
Private Sub CommandButton6_Click()
ActiveWorkbook.Save
End Sub
This command successfully saves the file, however, I am then unable to edit any cell in the worksheet.... until I switch to another worksheet (either 2 or 3) and then come back to worksheet 1. Once I change the focus away from worksheet 1 and then back to worksheet 1, editing is then available.
Any ideas of what may be causing this behavior?
Thanks.
I have an Excel workbook with 3 worksheets, running Excel 2016, where upon start-up I run a macro (in ThisWorkbook) to hide the ribbon and formula bar.
Private Sub Workbook_Activate()
Dim ws As Worksheet
Application.ScreenUpdating = False
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.DisplayFormulaBar = False
ActiveWindow.DisplayHeadings = False
...
End Sub
On worksheet 1 I have a button that calls:
Private Sub CommandButton6_Click()
ActiveWorkbook.Save
End Sub
This command successfully saves the file, however, I am then unable to edit any cell in the worksheet.... until I switch to another worksheet (either 2 or 3) and then come back to worksheet 1. Once I change the focus away from worksheet 1 and then back to worksheet 1, editing is then available.
Any ideas of what may be causing this behavior?
Thanks.