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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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