Article ID: 182177
Article Last Modified on 7/13/2007
Public Sub rPageSectionNumber()
Dim sCurPage As String
Dim sCurSection as String
'Obtain page number.
sCurPage = Selection.Information(wdActiveEndPageNumber)
'Obtain section number.
sCurSection = Selection.Information(wdActiveEndSectionNumber)
'Display results.
MsgBox "Page " & sCurPage & ": " & "Section " & sCurSection
End Sub
179216 OFF98: How to Use the Microsoft Office Installer Program
181058 OFF98: How to Run Sample Code from Knowledge Base Articles
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe
Keywords: kbdtacode kbhowto kbmacroexample KB182177