Macro Reference — Selection Object — PageUp Method (Selection Object)

# PageUp Method (Selection Object)

Moves the cursor the specified number of pages up in the document.

##

### [JavaScript]

    document.selection.PageUp( [ bExtend [, nCount ] ] );

### [VBScript]

    document.selection.PageUp [ bExtend [, nCount ] ]

## Parameters

bExtend

Optional. Specifies whether the moved text is collapsed or not. The default is false and the moved text is collapsed.

nCount

Optional. Specifies the number of pages to move up. The default is 1. If negative, the method acts like the PageDown Method. If 0, the method acts like 1.

## Version

Supported on EmEditor Professional Version 4.00 or later.