Skip to content

Instantly share code, notes, and snippets.

View seanblonien's full-sized avatar
💭
🐬

Sean Blonien seanblonien

💭
🐬
View GitHub Profile
@seanblonien
seanblonien / RemovePrintLines.bas
Created July 11, 2018 21:55
Excel VBA Remove Print Preview Lines/Page Break Lines/Dotted Lines for Workbook/All Sheets
' ----------------------------------------------------------------
' Procedure Name: RemovePrintLines
' Purpose: Remove all dotted/dashed print lines in the workbook
' Procedure Kind: Sub
' Procedure Access: Public
' Author: sb172a
' Date: 7/3/2018
' ----------------------------------------------------------------
Sub RemovePrintLines()
Application.ScreenUpdating = False
@seanblonien
seanblonien / ToggleGridlines.bas
Created July 11, 2018 21:50
Excel VBA Toggle/Show/Hide the Visibility of the Gridlines for Workbook/All Sheets
' ----------------------------------------------------------------
' Procedure Name: ToggleGridlines
' Purpose: Toggle the gridlines for all the sheets in the workbook
' Procedure Kind: Sub
' Procedure Access: Public
' Author: sb172a
' Date: 7/9/2018
' ----------------------------------------------------------------
Sub ToggleGridlines()
Application.ScreenUpdating = False
@seanblonien
seanblonien / ToggleHeadings.bas
Last active July 11, 2018 21:51
Excel VBA Toggle/Show/Hide the Visibility of the Row/Column/Cell Headings for Workbook/All Sheets
' Procedure Name: ToggleHeadings
' Purpose: Toggle the cell headings for all the sheets in the workbook
' Procedure Kind: Sub
' Procedure Access: Public
' Author: sb172a
' Date: 7/9/2018
' ----------------------------------------------------------------
Sub ToggleHeadings()
Application.ScreenUpdating = False
Dim WS As Worksheet, InitialSheet As Worksheet
@seanblonien
seanblonien / ToggleFormulaBar.bas
Created July 11, 2018 21:36
Excel VBA Toggle/Show/Hide the Visibility of the Formula Bar
' ----------------------------------------------------------------
' Procedure Name: ToggleFormulaBar
' Purpose: Toggle the application to show/hide formula bar
' Procedure Kind: Sub
' Procedure Access: Public
' Author: sb172a
' Date: 7/9/2018
' ----------------------------------------------------------------
Sub ToggleFormulaBar()
Application.DisplayFormulaBar = Not Application.DisplayFormulaBar
@seanblonien
seanblonien / ToggleRibbon.bas
Last active July 11, 2018 21:35
Excel VBA Toggle/Show/Hide the Visibility of the Ribbon/Menu Bar
' ----------------------------------------------------------------
' Procedure Name: ToggleRibbon
' Purpose: Toggle the visibilty of the Excel ribbon and menu bars
' Procedure Kind: Sub
' Procedure Access: Public
' Author: sb172a
' Date: 7/11/2018
' ----------------------------------------------------------------
Sub ToggleRibbon()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"", " & CStr(Not Application.CommandBars("Ribbon").Visible) & ")"