|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub ss()
Dim rg As Range, rga As Range
With ActiveDocument
Set rg = .GoTo(1, 1, 3)
rg.Select
Selection.MoveLeft
Selection.InsertBreak 2
Selection.Delete
Set rga = .GoTo(1, 1, 4)
rga.Select
Selection.MoveLeft
Selection.InsertBreak 2
Selection.Delete
rg.Select
If Selection.PageSetup.Orientation = wdOrientPortrait Then
Selection.PageSetup.Orientation = wdOrientLandscape
Else
Selection.PageSetup.Orientation = wdOrientPortrait
End If
End With
End Sub
|
|