以下是引用yintao在2005-8-25 15:29:13的发言:
版主再帮我想想,谢谢!
'* +++++++++++++++++++++++++++++
'* Created By I Love You_Word!@ExcelHome 2005-8-25 16:22:44
'仅测试于System: Windows NT Word: 10.0 Language: 2052
'№ 0004^The Code CopyIn [ThisDocument-ThisDocument]^'
'* -----------------------------
Option Explicit
Sub GetPaperSetup()
Dim i As Section, MyString As String
For Each i In ActiveDocument.Sections
Select Case i.PageSetup.Orientation
Case Is = wdOrientLandscape
MyString = MyString & "第" & i.Index & "节" & "横向,"
Case Else
MyString = MyString & "第" & i.Index & "节" & "纵向,"
End Select
Next
MyString = VBA.Mid(MyString, 1, Len(MyString) - 1)
MsgBox MyString
End Sub
'---------------------- |