AuthenticRange.MoveEnd
Method: MoveEnd (eKind as SPYAuthenticElementKind, nCount as Long) as AuthenticRange
Description
Move the end of the range to the begin of the nCount element of type eKind. Counting starts at the current end of the range object.
Use positive numbers for nCount to move towards the document end, use negative numbers to move towards document beginning. The beginning of the range stays unmoved, unless the new end would be less than it. In this case, the beginning gets moved to the new end. The method returns the modified range object.
Errors
2001 | The authentic range object, or its related view object is no longer valid. |
2003 | Target lies after end of document. |
2004 | Target lies before begin of document. |
2005 | Invalid element kind specified. Invalid address for the return parameter was specified. |