Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
1,770
Widoki
0
30/11/2017 11:53 am
Rozpoczynający temat
Paragraph Formating is not visible
1 odpowiedź
0
30/11/2017 11:56 am
Rozpoczynający temat
nobody knows why this option is not visible in most countries (language problems? who knows), this is my workaround.
1. Create macro (alt+f11)
2. Create new module in VBAPRoject -> Module
3. Paste this macro
1 2 3 4 5 6 7 8 |
Public Sub centerVerticalAllParagraphs() Dim s As Shape Dim srParagraph As ShapeRange Set srParagraph = ActivePage.Shapes.FindShapes(query:="@type='text:paragraph'") For Each s In srParagraph s.Text.Frame.VerticalAlignment = cdrCenterJustify Next s End Sub |
Public Sub centerVerticalAllParagraphs() Dim s As Shape Dim srParagraph As ShapeRange Set srParagraph = ActivePage.Shapes.FindShapes(query:="@type='text:paragraph'") For Each s In srParagraph s.Text.Frame.VerticalAlignment = cdrCenterJustify Next s End Sub
4. Run it