Print sheets

Tom.Jones

Well-known Member
Joined
Sep 20, 2011
Messages
526
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
Hi,

I would like to print a table - 50 times - from excel, but on each printed sheet I would like the number 1, 2 ... 50 to appear.
The table is in the range A1:G20. On the first printed sheet appear the number 1 (in D22) on the second sheet appear 2 and so on.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this:
Code:
Sub PrintMacro()

    Dim p As Long

    For p = 1 To 50
        Range("D22") = p
        ActiveSheet.Range("A1:G22").PrintOut
    Next p

End Sub
 
Upvote 0
Solution
Try this macro...Make sure that the workbook is opened to the page that you would like printed AND update the "For count loop (For count = 1 to 4) to your maxim page number (50 in your case)!
Code:
Sub PrintMultiple()    Dim pageNum As Long
    Dim count As Long
    pageNum = 1
    
    
    With ActiveSheet
    
        For count = 1 To 4
            [d22] = pageNum
            .PrintOut
            pageNum = pageNum + 1
        Next count
        
    End With
    
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,126
Members
453,021
Latest member
Justyna P

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