If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Justify text at Tab
I have a powerpoint with a text box that when entering text if you hit Tab,
the cursur moves to the right margin and typing continues from there right justified. A single tab is the break between left justified and right justified. How can I set this property in PPT and VBA? Thanks. ex. this is my textTab 11 Sep this is more textTab 11 Sep |
#2
|
|||
|
|||
Justify text at Tab
Maybe something like (assuming textbox is selected):
Sub tabset() Dim oTxtBox As Shape Set oTxtBox = ActiveWindow.Selection.ShapeRange(1) With oTxtBox.TextFrame ..TextRange.ParagraphFormat.Alignment = ppAlignLeft ..Ruler.TabStops.Add ppTabStopRight, (oTxtBox.Width + oTxtBox.Left) End With Set oTxtBox = Nothing End Sub -- Amazing PPT Hints, Tips and Tutorials http://www.pptalchemy.co.uk/powerpoi...tutorials.html _______________________________ We''re at PPTLive - see you there? www.pptlive.com "MeSteve" wrote: I have a powerpoint with a text box that when entering text if you hit Tab, the cursur moves to the right margin and typing continues from there right justified. A single tab is the break between left justified and right justified. How can I set this property in PPT and VBA? Thanks. ex. this is my textTab 11 Sep this is more textTab 11 Sep |
#3
|
|||
|
|||
Justify text at Tab
This was a big help to me too. Thanks, again!
---- Dale "John Wilson" wrote: Maybe something like (assuming textbox is selected): Sub tabset() Dim oTxtBox As Shape Set oTxtBox = ActiveWindow.Selection.ShapeRange(1) With oTxtBox.TextFrame .TextRange.ParagraphFormat.Alignment = ppAlignLeft .Ruler.TabStops.Add ppTabStopRight, (oTxtBox.Width + oTxtBox.Left) End With Set oTxtBox = Nothing End Sub -- Amazing PPT Hints, Tips and Tutorials http://www.pptalchemy.co.uk/powerpoi...tutorials.html _______________________________ We''re at PPTLive - see you there? www.pptlive.com "MeSteve" wrote: I have a powerpoint with a text box that when entering text if you hit Tab, the cursur moves to the right margin and typing continues from there right justified. A single tab is the break between left justified and right justified. How can I set this property in PPT and VBA? Thanks. ex. this is my textTab 11 Sep this is more textTab 11 Sep |
Thread Tools | |
Display Modes | |
|
|