expression - Required. An expression that returns a Selection object.
Unit - Optional Variant. The unit by which to move the selection. Can be one of the following WdUnits constants: wdLine, wdParagraph, wdWindow or wdScreen. The default value is wdLine.
Count - Optional Variant. The number of units the selection is to be moved. The default value is 1.
Extend - Optional Variant. Can be either wdMove or wdExtend. If wdMove is used, the selection is collapsed to the end point and moved up. If wdExtend is used, the selection is extended up. The default value is wdMove.
================
No way of choosing a word, sorry.
================
You have the whole help file for VBA for Word in CHM format in your computer - it comes with installation of MS Office.
Look in the directory C:\Program Files\Microsoft Office\Office\1033 (or where you have installed it)
and start VBAWRD9.CHM.
I forgot to put the examples from the help file:
Selection.MoveUp wdParagraph, 2, wdMove
' moves the selection to the beginning of the previous paragraph.
Selection.MoveUp wdLine, 3, wdMove
' moves the selection up three lines
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.