With Application .DisplayFullScreen = True .CommandBars("Full Screen").Visible = False .CommandBars("Worksheet Menu Bar").Enabled = False End With On Error GoTo 0 End Sub Sub RestoreToolbars() On Error Resume Next With Application .DisplayFullScreen = False .CommandBars("Worksheet Menu Bar").Enabled = True End With On Error GoTo 0 End Sub Sub Hidetool() Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" Application.DisplayFormulaBar = False Application.DisplayStatusBar = Not Application.DisplayStatusBar ActiveWindow.DisplayWorkbookTabs = False End Sub Sub ShowTool() Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)" Application.DisplayFormulaBar = True Application.DisplayStatusBar = True ActiveWindow.DisplayWorkbookTabs = True End Sub Sub scrollLimit() Worksheets("Sheet1").ScrollArea = "A1:E16" End Sub Sub Additional() With ActiveWindow .DisplayHorizontalScrollBar = False .DisplayVerticalScrollBar = False .DisplayWorkbookTabs = False .AutoFilterDateGrouping = False .DisplayGridlines = False .DisplayHeadings = False '.FreezePanes = True End With End Sub Sub StopSheet() With Sheet1 .ScrollArea = Range("A1").Address .EnableSelection = xlNoSelection .Protect , , , , True End With End Sub Sub StartSheet() With Sheet1 .Unprotect .Range("A1").Select .ScrollArea = Empty .EnableSelection = xlNoRestrictions End With End Sub Sub Misc() ThisWorkbook.Worksheets("Sheet1").Range("A1:E16").Merge End Sub Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As R ange, Cancel As Boolean) Cancel = True End Sub Sub windowwidthheight() With ActiveWindow .WindowState = xlNormal .Top = 1 .Left = 1 .Height = 300 'Application.UsableHeight .Width = 300 'Application.UsableWidth End With End Sub Sub SetWindowSize1() Application.WindowState = xlNormal Application.Top = 1 Application.Left = 1 Application.Width = 300 Application.Height = 300 End Sub
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.