SanjayGMusafir
Well-known Member
- Joined
- Sep 7, 2018
- Messages
- 1,513
- Office Version
- 2024
- Platform
- Windows
Hi Experts
I have been trying to figure out some way to reset my Formula bar after I have completed my task(s). Looking for VBA that I can add to serve the purpose.
Found some apparent solutions, but none of them seem to be working. Got 2, but both give different errors while running.
Can you help me find a better solution to it?
Thanks
The VBA codes I got from internet are as below -
I have been trying to figure out some way to reset my Formula bar after I have completed my task(s). Looking for VBA that I can add to serve the purpose.
Found some apparent solutions, but none of them seem to be working. Got 2, but both give different errors while running.
Can you help me find a better solution to it?
Thanks
The VBA codes I got from internet are as below -
VBA Code:
'To Collapse Formula Bar
Application.DisplayFormulaBar = True 'to Show/hide formula bar
CommandBars.ExecuteMso "MinimizeRibbon" 'Excel Gives Debug Error on this
Application.FormulaBarHeight = 3 'Excel Closes with Error if I use this