By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Aug 3 '17 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
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.
Aug 4 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.