Thanks PJoaquin,
I think be setting this up wrong (I'm quite new to vba) because I pasted the code as below to the workbook open and beforeclose subs but there's no effect on the ribbon, although the code lines to hide and unhide the formula bar and disable the "Do you want to save changes ...?" message work ok.
Private Sub Workbook_Open()
Application.DisplayFormulaBar = False
Application.SendKeys ("^{F1}")
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFormulaBar = True
Application.SendKeys ("^{F1}")
ActiveWorkbook.Saved = True
End Sub
What am I doing wrong?
Bookmarks