How do I insert a set number of pages into a word document dependent on answer to que

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ConfusedNewby
    New Member
    • Aug 2017
    • 1

    How do I insert a set number of pages into a word document dependent on answer to que

    I am fairly new to VB, have done a user form where I have asked a question How many projects? If the answer is greater than 1 I want the word document to insert that number of extra pages into the document. How do i do that?
    Thank you
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I have never had to work with word in .NET myself; however, maybe this code example will help you out: How to automate Word from Visual Basic .NET to create a new document. It includes an example of how to insert a hard page break.

    Comment

    Working...