Insert-New-Page
Command Description
Insert a page break at the current cursor position in a Word document
Command Prototype
Word.InsertPage(objWord)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objWord | True | expression | objWord | Word document object |
Demo
/************************************Insert new page************* ****************************
Command prototype:
Word.InsertPage(objWord)
Input parameters:
objWord--Word document object
*********************************************************************************/
Dim objWord
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.SelectRow(objWord,3,3)
Word.InsertPage(objWord)