longtran295
New Member
- Joined
- Sep 13, 2021
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Dear all,
I write some code to expand ribbon when open workbook (in ThisWorkbook):
But it not working. I think because of loading time when file opened.
Could someone has solution for this issue?
Many thanks!
I write some code to expand ribbon when open workbook (in ThisWorkbook):
VBA Code:
Private Sub Workbook_open()
If Application.CommandBars("Ribbon").Height<=100 Then
SendKeys "^{F1}", True
End If
End Sub
Could someone has solution for this issue?
Many thanks!