Printout
Posted: Thu May 14, 2020 6:51 pm
Hi Dear,
I got this code from my friend.
Those code is use print from selected any range in a sheet thru inputbox but it is no luck.
Sub PrintIt()
Dim rRange As Range
Set rRange=Application.InputBox("Please select the range",Type:=8)
With Sheets(Application.InputBox("Input Sheet Name"))
.PageSetup.PrintArea=rRange.Address
.PrintOut Copies:=Inputbox("Number of copies:"), Collate:=True
End With
End Sub
Best wishes
I got this code from my friend.
Those code is use print from selected any range in a sheet thru inputbox but it is no luck.
Sub PrintIt()
Dim rRange As Range
Set rRange=Application.InputBox("Please select the range",Type:=8)
With Sheets(Application.InputBox("Input Sheet Name"))
.PageSetup.PrintArea=rRange.Address
.PrintOut Copies:=Inputbox("Number of copies:"), Collate:=True
End With
End Sub
Best wishes