B
Barbara
I have a macro to format a graphic as a floating shape right-aligned against
the margin and top-aligned with the current paragraph. The core of the code
is:
With myShape
.WrapFormat.Type = wdWrapSquare
.WrapFormat.DistanceTop = 0
.WrapFormat.DistanceBottom = 0
.WrapFormat.DistanceLeft = 9
.WrapFormat.DistanceRight = 0
.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
.Left = wdShapeRight
.RelativeVerticalPosition = wdRelativeVerticalPositionParagraph
.Top = wdShapeTop
End With
I am a little nervous about using wdRelativeVerticalPositionParagraph here,
because the Format Picture dialog does not offer "relative to paragraph" as
an option for a square-wrapped picture. And when I look at the settings in
the dialog after running the macro, it says that the vertical alignment is
"top relative to page." The macro does seem to do what I want, namely, align
the graphic with the top of the paragraph. Is there any reason NOT to use
this option? (Why won't Word let a normal user align the picture with the top
of the paragraph?)
Thanks!
the margin and top-aligned with the current paragraph. The core of the code
is:
With myShape
.WrapFormat.Type = wdWrapSquare
.WrapFormat.DistanceTop = 0
.WrapFormat.DistanceBottom = 0
.WrapFormat.DistanceLeft = 9
.WrapFormat.DistanceRight = 0
.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
.Left = wdShapeRight
.RelativeVerticalPosition = wdRelativeVerticalPositionParagraph
.Top = wdShapeTop
End With
I am a little nervous about using wdRelativeVerticalPositionParagraph here,
because the Format Picture dialog does not offer "relative to paragraph" as
an option for a square-wrapped picture. And when I look at the settings in
the dialog after running the macro, it says that the vertical alignment is
"top relative to page." The macro does seem to do what I want, namely, align
the graphic with the top of the paragraph. Is there any reason NOT to use
this option? (Why won't Word let a normal user align the picture with the top
of the paragraph?)
Thanks!