Toggling a Boolean property
Sub ToggleWrapText() If TypeName(Selection) = "Range" Then Selection.WrapText = Not ActiveCell.WrapText End If End Sub