how to create a toolbar button to set selected cells to wrap text

S

steveguebert

In Excel I frequently go to Format Cells, Alignment tab, then select check
box to wrap (or not wrap) text. How can I create a toggle button I can put
on my toolbar so I can wrap (not wrap) text for the selected cells with just
the one mouse click?
 
G

Gord Dibben

steve

Sub Wrap_Text()
With Selection
.WrapText = Not .WrapText
End With
End Sub


Gord Dibben Excel MVP
 
Top