' Macro to Format Numbers
Sub FormatNumbers()
' This macro formats the selected numbers to have no decimal places
' and uses a space as a thousand separator
With Selection
.NumberFormat = "#,##0"
End With
End Sub
' Macro to Transpose and Paste Values
Sub TransposePasteValues()
' This macro transposes and pastes copied data
' Ensure the data is copied before running this macro
Range("C3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
End Sub
' Macro to Replace Formulas with Values
Sub ReplaceFormulasWithValues()
' This macro replaces the formulas in the selected cells with their current
values
With Selection
.Value = .Value
End With
End Sub
' Macro to Toggle Gridlines
Sub ToggleGridlines()
' This macro toggles gridlines on or off based on their current state
With ActiveWindow
.DisplayGridlines = Not .DisplayGridlines
End With
End Sub