You would need something like a worksheet change macro.
The macro would run when you change a value in a set cell
example
you set the macro up to print when the value in A1 is updated.
The macro prints sheet 2 page number based on number in A1
If the above suggestion is suitable try the listed macro
To install macro to correct location
Copy this macro
GoTo Excel
Select sheet this is to appy to
Right Click on Sheet Name Tab > select View Code
Past macro into the Worksheet Module displayed
Change red A1 as required
Change Blue Sheet2 as required
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Rng As Range
For Each Rng In Target
If Not Application.Intersect(Rng, Range("a1")) Is Nothing Then
Application.EnableEvents = False
Sheets("sheet2").PrintOut From:=Rng.Value, To:=Rng.Value, Copies:=1, Collate:=True
End If
Next Rng
Application.EnableEvents = True
End Sub
Bookmarks