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


No comments:
Post a Comment