Tuesday, 15 August 2017

microsoft powerpoint - How to change default text direction in Power Point 2010?


My PowerPoint's default text direction is right to left.


How can I change it to left to right?



Answer



You need some VBA to achieve this. Press Alt+F11 to open VBA editor, select menu Insert > Module and paste the following code


Sub ResetLeftToRight()

Dim oSh As Shape
Dim oSl As Slide

' make sure slide sorter reads left to right
ActivePresentation.LayoutDirection = ppDirectionLeftToRight

' then fix each of the text boxes
For Each oSl In ActivePresentation.Slides
For Each oSh In oSl.Shapes
On Error Resume Next
If oSh.HasTextFrame Then
If oSh.TextFrame.HasText Then
WIth oSh.TextFrame.TextRange.ParagraphFormat
.TextDirection = ppDirectionLeftToRight
End With
End If
End If
Next ' shape
Next ' slide

End Sub

After all press F5 to run.


The script above resets each textbox's text direction. It also resets the interface if it's currently in right-to-left like this


Powerpoint RTL UI


Powerpoint RTL list UI


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...