For your first button try
Code:Sub PrtRng1() With ActiveSheet .PageSetup.PrintArea = "B4:D106" .PrintOut End With End Sub
The code for the second button should be obvious.
Private Sub CommandButton1_Click()
With ActiveSheet
.PageSetup.PrintArea = "B4:D106"
.PrintOut
End With
End Sub
Well, this works for me
Code:Private Sub CommandButton1_Click() With ActiveSheet .PageSetup.PrintArea = "B4:D106" .PrintOut End With End Sub
Make sure that you have exited Design Mode after creating the button and make sure that macros are enabled.