Supercharge your PowerPoint productivity with
|
PPTools |
ProblemIf your presentation's bullets appear on the right side of the text and left justified text appears to be right justified instead, it may be that the presentation was created in English but on a system set to a language that uses right-to-left text (ie, Hebrew, Arabic, Japanese, Chinese, Korean). SolutionIf your system has support for one of these languages, you may see PowerPoint formatting options for changing the direction. Even so, changing layout direction paragraph by paragraph can be quite tedious, and if you don't have these options available, you're stuck. Or are you? VBA to the rescueWhile PowerPoint itself may not let you get at the settings you need, it'll let VBA in the back door. This little macro will quickly reset all the text in your presentation to Left-To-Right:
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
Thanks to (newly minted PPT MVP as of early 2007) John Wilson for his help tracking this one down. See How do I use VBA code in PowerPoint? to learn how to use this example code. Español Deutsch Français Português Italiano Nederlands Greek Japanese Korean Chinese |
Supercharge your PPT Productivity with PPTools
|
content authoring & site maintenance by |
Text is right to left, bullets appear on right of text
http://www.pptfaq.com/FAQ00797.htm
Last update 03 May, 2007