Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Office 2003
Reference
Properties
I
 Information Property

  Switch on low bandwidth view
Word 2003 VBA Language Reference
Information Property

Returns information about the specified selection or range. Read-only Variant.

expression.Information(Type)

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example displays the current page number and the total number of pages in the active document.

MsgBox "The selection is on page " & _
    Selection.Information(wdActiveEndPageNumber) & " of page " _
    & Selection.Information(wdNumberOfPagesInDocument)
		

If the selection is in a table, this example selects the table.

If Selection.Information(wdWithInTable) Then _
    Selection.Tables(1).Select
		

This example displays a message that indicates the current section number.

Selection.Collapse Direction:=wdCollapseStart
MsgBox "The insertion point is in section " & _
    Selection.Information(wdActiveEndSectionNumber)
		


See Also | Flags Property | SpecialMode Property | StoryType Property


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker