ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Command Icon (https://www.excelbanter.com/excel-programming/373410-command-icon.html)

TheRook

Command Icon
 
Is there a command tcon for wrapped text?

kassie

Command Icon
 
No there is no such button. You can however use a macro to do it, such as
below.

You can use <Alt<F8 to run this macro, you can assign a shortcut key to
this macro, or you can create a button to run this macro, if you really want
to be fancy

Sub Alignment()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub


"TheRook" wrote:

Is there a command tcon for wrapped text?



All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com