Print Multiple sheets where a cell updates each print

jrisebo

Active Member
Joined
Mar 15, 2011
Messages
310
Office Version
  1. 365
Platform
  1. Windows
Working on a schedule type sheet, and I want it to print a copy, update a cell, print a copy, update a cell, print....etc. Say the cell I want updated is A1, and the list to update for each print is in column B. So first print would use value in B1 in A1, second would be B2 in A1, .....so fourth.

Anyone know how to do this? Maybe it could generate a new sheet for each, and then I print multiple sheets.

Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I found this, but would like it to use a list in a set of cells, instead of typing in my #1, #2, #3, 4, etc

VBA Code:
Sub PrintCopies()
    Dim i As Integer
    Dim VList As Variant

    VList = Array("#1", "#2", "#3", "#4")
For i = LBound(VList) To UBound(VList)
        Range("A7") = VList(i)
        ActiveSheet.PrintOut
        
    Next
End Sub
 
Last edited:
Upvote 0
This worked

VBA Code:
Private Sub CommandButton1_Click()

For x = 1 To 100 'increase the 100 to a larger number if you ever have more than 100 sheets

If Sheets("Sheet2").Range("T" & x).Value = "" Then Exit Sub

Sheets("Sheet2").Range("F4").Value = Sheets("Sheet2").Range("T" & x).Value

Sheets("Sheet2").Range("F3").Value = Sheets("Sheet2").Range("U" & x).Value

ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path & "\test" & x & ".pdf"

Next

End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,214,385
Messages
6,119,210
Members
448,874
Latest member
b1step2far

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