multipage attendance book

imblish

New Member
Joined
Sep 30, 2015
Messages
4
i have a 2-page attendance book for the month
i have found the macro in here about page 1-31
but the problem is when i try that it prints

page1-31
page1-31
page2-31
page2-31

is there anyway i can make it print

page1-62
page2-62
page3-63
page4-64...
pls
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Can you attach a link to download the file or paste VBA code?
i used this code found here
the problem is that i have 45 names to print that takes 2 page in same sheet and i want to count 1,2,3,4.etc
Sub PrintLogBook()
Dim x%
x% = 1
For x% = 1 To 100
With ActiveSheet.PageSetup
.CenterFooter = x% & " of 100"
End With
ActiveSheet.PrintOut

Next x%
End Sub
 
Upvote 0
Try this.

Tip: you can print Adobe PDF file to see the printout instead of wasting paper.

Code:
Sub PrintLogBook()[/COLOR]
[COLOR=#333333]Dim x%[/COLOR]
[COLOR=#333333]x = 1[/COLOR]
[COLOR=#333333]For x = 1 To 100[/COLOR]
[COLOR=#333333]With ActiveSheet.PageSetup[/COLOR]
[COLOR=#333333].CenterFooter = x & " of 100"[/COLOR]
[COLOR=#333333]End With[/COLOR]
[COLOR=#333333]ActiveSheet.PrintOut[/COLOR]
[COLOR=#333333]Next x[/COLOR]
[COLOR=#333333]End Sub[/COLOR]
 
Upvote 0
Try this.

Tip: you can print Adobe PDF file to see the printout instead of wasting paper.

Code:
Sub PrintLogBook()
Code:
[COLOR=#333333]Dim x%[/COLOR]
[COLOR=#333333]x = 1[/COLOR]
[COLOR=#333333]For x = 1 To 100[/COLOR]
[COLOR=#333333]With ActiveSheet.PageSetup[/COLOR]
[COLOR=#333333].CenterFooter = x & " of 100"[/COLOR]
[COLOR=#333333]End With[/COLOR]
[COLOR=#333333]ActiveSheet.PrintOut[/COLOR]
[COLOR=#333333]Next x[/COLOR]
[COLOR=#333333]End Sub[/COLOR]

thats exactly the code i pasted before i have found it but prints (because it a 2-page sheet)
1 of 100
1 of 100
2 of 100
2 of 100

i wanted
1 of 100
2 of 100
3 of 100
4 of 100


anyways i figured it out
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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