I
info
Dear Experts:
I need to retrieve the value of the left tabstop (there is only one
left tabstop) setting of a custom defined style and use this value in
a macro that sets the left tabstop for certain sections.
I got no idea how I can retrieve this information. Help is
appreciated. Thank you very much in advance.
Regards, Andreas
Sub SetTabStops()
Dim i As Integer
Dim sect As Section
For i = 2 to 3
Set sect = ActiveDocument.Sections(i)
With sect.Headers(wdHeaderFooterFirstPage)
..LinkToPrevious = False
..Range.ParagraphFormat.tabstops.ClearAll
..Range.ParagraphFormat.tabstops.Add _
Position:=CentimetersToPoints(VALUE OF THE LEFT TAB SETTING OF A
CUSTOM DEFINED HEADER STYLE IS TO BE FILLED IN HERE),
alignment:=wdAlignTabLeft, Leader:= wdTabLeaderSpaces
End With
next i
End Sub
I need to retrieve the value of the left tabstop (there is only one
left tabstop) setting of a custom defined style and use this value in
a macro that sets the left tabstop for certain sections.
I got no idea how I can retrieve this information. Help is
appreciated. Thank you very much in advance.
Regards, Andreas
Sub SetTabStops()
Dim i As Integer
Dim sect As Section
For i = 2 to 3
Set sect = ActiveDocument.Sections(i)
With sect.Headers(wdHeaderFooterFirstPage)
..LinkToPrevious = False
..Range.ParagraphFormat.tabstops.ClearAll
..Range.ParagraphFormat.tabstops.Add _
Position:=CentimetersToPoints(VALUE OF THE LEFT TAB SETTING OF A
CUSTOM DEFINED HEADER STYLE IS TO BE FILLED IN HERE),
alignment:=wdAlignTabLeft, Leader:= wdTabLeaderSpaces
End With
next i
End Sub