Need a macro that will print specific pages

nplano1

New Member
Joined
Sep 6, 2014
Messages
22
I need a macro that will print specific pages
I have a spreadsheet that can up to 30,000 rows in it, when I print this each page has 32 rows per page, 31 rows with data and 1 header row that repeats on each page, I have gone in to page layout, header / footer, custom header, and insert page number on every page. So total pages when I print is from 870 to sometimes over 1000
I need to evenly mix up and divide these pages over twelve workbooks that I print out, I'm looking to setup a macro that will print specific pages starting with page 1,13,25… all the way through then go to page 2,14,26… till it loops all the way through to page 12,24,36… for page numbers see chart.
If this is possible it would be great so I don’t have separate the pages by hand anymore.


Excel 2007
ABCDEFGHIJKLMNOPQRSTUVW
1BOOK 1BOOK 2BOOK 3BOOK 4BOOK 5BOOK 6BOOK 7BOOK 8BOOK 9BOOK 10BOOK 11BOOK 12
2Page 1Page 2Page 3Page 4Page 5Page 6Page 7Page 8Page 9Page 10Page 11Page 12
3P 13P 14P 15P 16P 17P 18P 19P 20P 21P 22P 23P 24
4P 25P 26P 27P 28P 29P 30P 31P 32P 33P 34P 35P 36
5373839404142434445464748
6495051525354555657585960
7616263646566676869707172
8737475767778798081828384
9858687888990919293949596
10979899100101102103104105106107108
11109110111112113114115116117118119120
12121122123124125126127128129130131132
13133134135136137138139140141142143144
14145146147148149150151152153154155156
15157158159160161162163164165166167168
16169170171172173174175176177178179180
17181182183184185186187188189190191192
18193194195196197198199200201202203204
19205206207208209210211212213214215216
20217218219220221222223224225226227228
21229230231232233234235236237238239240
Sheet1
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Is your 30,000 rows which prints 1000 pages all on one worksheet in one workbook. If that is the case I think I have a solution for you...
 
Upvote 0
Yes its all in one workbook and all on one sheet, here is a sample.


Excel 2007
ABCDEFGHIJKL
1PhoneFirstLastHousePreStreetPostSuffixUnitCityCountyZip
2(000) 000-0000WillieWillie166911stStAlvaLee11920
3(000) 000-0001ClaytonWillie2406E2ndStAlvaLee11920
4(000) 000-0002ThomasWillie3404E3rdStAlvaLee11920
5(000) 000-0003KennethWillie4255E4thStAlvaLee11920
6(000) 000-0004DenesizWillie29205thStAlvaLee11920
7(000) 000-0005JackWillie66thStAlvaLee11920
8(000) 000-0006JamesWillie156867thDrAlvaLee11920
9(000) 000-0007CurtisWillie29648thDrAlvaLee11920
10(000) 000-0008AlmedWillie29869thDrAlvaLee11920
11(000) 000-0009GregoryWillie310910thDrAlvaLee11920
12(000) 000-0010JohnWillie711thStAlvaLee11920
13(000) 000-0011FrankWillie190112thRdAlvaLee11920
14(000) 000-0012AnneWillie299113thRdAlvaLee11920
15(000) 000-0013BillyWillie350114thRdAlvaLee11920
16(000) 000-0014RickyWillie367115thRdAlvaLee11920
17(000) 000-0015RandyWillie377116thRdAlvaLee11920
18(000) 000-0016JamesWillie235117thDrAlvaLee11920
19(000) 000-0017GregoryWillie2022518thLnAlvaLee11920
20(000) 000-0018ScottWillie221819thAveAlvaLee11920
21(000) 000-0019RudolfWillie2111020thCtAlvaLee11920
22(000) 000-0020RobertWillie186021stDrAlvaLee11920
23(000) 000-0021ChristianeWillie2063522ndDrAlvaLee11920
24(000) 000-0022SusanWillie2174023rdStAlvaLee11920
25(000) 000-0023SamuelWillie258024thDrAlvaLee11920
26(000) 000-0024LindaWillie261025thDrAlvaLee11920
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,384
Members
448,889
Latest member
TS_711

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