S
Sjef
Hallo,
in a macro I want to detect the alignment of a selection. When a new page
break has been set I want to change the alignment (from left to right and
back).
This is the code I thought should do the trick. But it does not :-((
What's wrong. Any ideas. Thanxs!!
If Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft Then
Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
Else
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
End If
in a macro I want to detect the alignment of a selection. When a new page
break has been set I want to change the alignment (from left to right and
back).
This is the code I thought should do the trick. But it does not :-((
What's wrong. Any ideas. Thanxs!!
If Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft Then
Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
Else
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
End If