VerticalAlignment of the table

K

Konrad

how to change with vba VerticalAlignment of the specified
table ?

tks to all of You

konrad
 
H

Helmut Weber

Hi Konrad,
hm..., as this can easily be recorded by the macro recorder,
I'm inclined to think that you are in normalview, in which case
the table seems to stay where it is.
ActiveWindow.View.Type = wdPrintView
before something like this:
With Selection.Tables(1).Rows
.WrapAroundText = True
.HorizontalPosition = wdTableCenter
.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
.DistanceLeft = CentimetersToPoints(0.25)
.DistanceRight = CentimetersToPoints(0.25)
.VerticalPosition = wdTableCenter
.RelativeVerticalPosition = wdRelativeVerticalPositionMargin
.DistanceTop = CentimetersToPoints(0)
.DistanceBottom = CentimetersToPoints(0)
.AllowOverlap = False
End With
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98

to PrintView ActiveWindow.View.Type =wdNormalView
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top