Excel Macro to Toggle Wrap Text

2012/01/14
By
Modified: 2012/01/02

This Excel macro allows changing cells in selection based on the first cell in a selection:

If Selection.Cells(1, 1).WrapText = True Then
    Selection.WrapText = False
Else
    Selection.WrapText = True
End If

 

This is useful in Excel 2003 and bellow.  Starting from Excel 2007, there is a button to perform this task on a Task Ribbon.

Tags: , , ,


Add Your Comment Ваш Комментарий

Your email address will not be published. Required fields are marked *

* Ваше Имя *
* Ваш Email (не будет показан на сайте)*

*