The information in this article applies to:
SUMMARYIn Microsoft Word, you can use the WordBasic SelInfo function to return information about the current selection. For example, you can use the SelInfo function to determine the current page and section number for the insertion point position or the selected text. The SelInfo() function is not available in Word for Windows version 1.x. MORE INFORMATIONThe following macro posts the current page and section number in a message box:
The syntax for SelInfo() is as follows:
There are 36 different arguments or types for the SelInfo function in
Word 6.0 (30 arguments in Word version 2.x). Type number 2 returns
the section number containing the selection. Type number 3 returns
the physical page number in the document containing the selection.
Type number 1 returns the logical page number for the current page.
In otherwords, physical page 4 may be logical page number 23.
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, page 277 Additional query words:
Keywords : wordnt kbmacroexample winword ntword macword word6 word7 word95 |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |