VBA to produce the same page "x" amount of times

osscie3

Board Regular
Joined
Apr 30, 2014
Messages
70
In Word, I've created a template for a payment coupon book. So far I've written some code to load an input box/user form upon opening the word file. The user inputs stuff like name, payment date, payment amount, etc. After hitting submit, the user input is automatically entered into the template in the appropriate fields. I'm using bookmarks to do this.
My last piece of the puzzle is this: I need it to produce however many coupons that the user defines in one of my input boxes. Each coupon would have the same information. The only difference is the coupon ID needs to auto-increment to be a unique ID.
Think of this like producing a virtual checkbook almost. Your name, address, etc is all the same. The check number is different. This program is essentially asking how many checks you want.
Also, if this would be easier in Excel or even creating a form in Adobe please let me know. This was the only way I knew how to do it.
Feel free to ask any questions. Hope this makes sense.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,214,790
Messages
6,121,608
Members
449,038
Latest member
apwr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top