Hiding formula bar/scroll bar in specific spreadsheet only

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
Good morning

I have VBA to hide the formula bar/scrollbar etc on my spreadsheet.

However, this seems to then replicate this action on any spreadsheets that are opened.

I only need it in a specific workbook only, and I do not want it to affect any other workbooks.

Can anyone please advise if this is:
a) Possible
b) If yes, how to do this.

Code:
Application.EnableEvents = True
Application.DisplayFormulaBar = False
Application.ExecuteExcel4Macro "Show.ToolBar(""Ribbon"",False)"
    Application.DisplayStatusBar = False
    ActiveWindow.DisplayWorkbookTabs = False
    ActiveWindow.DisplayHeadings = False
    Sheets("newmultirate").ScrollArea = "A1:S28"
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try puttings setting back to normal when the workbook is deactivated and re-applying the settings when the workbook is activated
Both procedures must be place in ThisWorkbook module

Code:
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
    [COLOR=#008080][I]put setting back to normal in this procedure[/I][/COLOR]
End Sub
Private Sub Workbook_Activate()
    [COLOR=#008080][I]apply special ribbon \ scroll \ formula bar settings in this procedure[/I][/COLOR]
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top