A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Justify text at Tab



 
 
Thread Tools Display Modes
  #1  
Old September 11th, 2008, 08:31 PM posted to microsoft.public.powerpoint
MeSteve
external usenet poster
 
Posts: 84
Default 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  
Old September 11th, 2008, 09:26 PM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default 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  
Old November 23rd, 2009, 09:53 PM posted to microsoft.public.powerpoint
Dale Fye
external usenet poster
 
Posts: 2,651
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.