I have been trying to hide a ribbon automatically when opening the workbook with this code
Private Sub Workbook_Open()
Application.CommandBars.ExecuteMso "HideRibbon"
End Sub
It is not working as on-event open workbook but it is working when i press F5, any advice? '