Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88030

How to auto hide ribbon but only for a specific workbook and only for one worksheet in that workbook

$
0
0

How to auto hide ribbon but only for a specific workbook and only for one worksheet in that workbook when workbook opens?

When I use the below code is working as expected and hide the ribbon but when I open another excel files the ribbon in the files is also hidden.

Private Sub Workbook_Open()
    Application.CommandBars.ExecuteMso "HideRibbon"
 End Sub

Viewing all articles
Browse latest Browse all 88030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>