![]() |
|
#1
|
||||
|
||||
![]()
You are unlikely to be creating a template in VBA. You'll be far more likely to be creating a document from a template.
In any event, your initial post said you "need to generate 50 pages and I need them to be numbered individually as 1 of 50, 2 of 50, 3 of 50, etc." That's precisely what the PAGE and NUMPAGES fields are for. Although these fields should reside in the page header or footer, that doesn't mean they can't display somewhere else on the page. This can be done by putting them in a textbox in the header or footer, then dragging that textbox to wherever you want the numbers to appear. Any other content that needs to repeat on every page can likewise be inserted into the header or footer. All you then need is code to insert the required # of page breaks. For that, see, for example: https://www.msofficeforums.com/word-...html#post34477.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Ok, here's the file so you can take a better look at it.
It's my first time creating something like this. The idea that I have and maybe there is an easier way as you mentioned, on the field where it says No. of Total Boxes, as an example, the user would enter that she has a total of 50 boxes. The result that I would like is when you hit Print, it should give you Page 1 of 50 on every page as I have mentioned above. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
gburya | Word VBA | 26 | 07-04-2017 03:29 PM |
![]() |
Geza59 | Word VBA | 18 | 01-15-2014 01:43 AM |
![]() |
im_rusahbh | Word VBA | 1 | 12-23-2013 05:28 PM |
![]() |
jdwoods | Word VBA | 7 | 12-16-2011 05:11 AM |
![]() |
bobmard | Word | 8 | 08-24-2011 08:51 AM |