Home > Net >  Which bosses to split the code of Word page
Which bosses to split the code of Word page

Time:09-27

Is the current Word document according to the fixed number of pages (page 1, page 2... ),
Thank you very much!

CodePudding user response:

Insert section, you can record a macro, the generated code

CodePudding user response:

Thank you moderator, vba code, just want to change to vb.net, but can not change...

CodePudding user response:

refer to the second floor weixin_38473303 response:
thank moderator, vba code, just want to change to vb.net, but can not change...

I remember the vba code, function and. Net, different parameters passed,

Dim wApp=New Word. Application
Dim wDoc As Word. The Document=Nothing
WApp. Visible=False

WDoc=wApp. Documents. The Open (" name ")
WDoc. Activate ()
WDoc. Selection. InsertBreak (Type:=Word. WdBreakType. WdPageBreak) 'insert page break

CodePudding user response:

Thank you teacher! After insert page break, how to copy the contents of each page?
  • Related