wordvba编程代码大全( 二 )


.Sections(1).Footers(1).LinkToPrevious?=?False?
With?.Sections(1).Footers(1).PageNumbers?
.RestartNumberingAtSection?=?True?.StartingNumber?=?1?
.Add?PageNumberAlignment:=wdAlignPageNumberCenter,?FirstPage:=True?
End?With?
End?With?
End?Sub??
5、实现图形的精确旋转?
Sub?图形旋转()?
Dim?blnIsInlineShape?As?Boolean?
If?Selection.Type?=?wdSelectionInlineShape?Then?
blnIsInlineShape?=?True?
Selection.InlineShapes(1).ConvertToShape?
End?If?
Dim?intTurn?As?Integer?
intTurn?=?InputBox("请输入图形要旋转的角度值"?&?vbCrLf?&?"正数表示顺时针,负数表示逆时针 。",?"图形旋转",?30)?
Selection.ShapeRange.IncrementRotation?intTurn?
End?Sub?

推荐阅读