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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top