Forum

Corel: how to verti...
 
Notifications
Clear all

Corel: how to verticaly center paragraph text

   RSS

0
Topic starter

Paragraph Formating is not visible

1 Answer
0
Topic starter

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

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: