Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Align text in a text box
Hi;
I have a text box and I want to justified the text using a macro I have the following code : ActiveSheet.Shapes("Text Box 1").Select Selection.Characters.Text = "" With Selection.Font ..Name = "Calibri" ..FontStyle = "Regular" ..Size = 9 End With and it works but I do not know how to justified the text Anybody knows?? thank you |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Align text in a text box
Dim shp As Shape
Set shp = ActiveSheet.Shapes("Text Box 1") shp.TextFrame.HorizontalAlignment = xlJustify Regards, Peter T "Ana" wrote in message ... Hi; I have a text box and I want to justified the text using a macro I have the following code : ActiveSheet.Shapes("Text Box 1").Select Selection.Characters.Text = "" With Selection.Font .Name = "Calibri" .FontStyle = "Regular" .Size = 9 End With and it works but I do not know how to justified the text Anybody knows?? thank you |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Align text in a text box
Thank you a lot
"Peter T" wrote: Dim shp As Shape Set shp = ActiveSheet.Shapes("Text Box 1") shp.TextFrame.HorizontalAlignment = xlJustify Regards, Peter T "Ana" wrote in message ... Hi; I have a text box and I want to justified the text using a macro I have the following code : ActiveSheet.Shapes("Text Box 1").Select Selection.Characters.Text = "" With Selection.Font .Name = "Calibri" .FontStyle = "Regular" .Size = 9 End With and it works but I do not know how to justified the text Anybody knows?? thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
align text?? | New Users to Excel | |||
How to right-align text and numbers? | Excel Discussion (Misc queries) | |||
Right align partial text in a text box | Excel Discussion (Misc queries) | |||
Need to align text around a symbol??? | Excel Worksheet Functions | |||
How to align text boxes? | Excel Discussion (Misc queries) |