Hello dear MrExcel!
How to print selected range vertically, copies 1, colatte True, normal margins?
Thanks in advance?
Ps. I just don't know very well VBA, sorry for SELECT&SELECTION!
How to print selected range vertically, copies 1, colatte True, normal margins?
Thanks in advance?
Ps. I just don't know very well VBA, sorry for SELECT&SELECTION!
Code:
Sub Macro1printanjestanja()
'
' Macro1printanjestanja Macro
'
'
' Range("M8:Q22").Select
' Selection.PrintOut Copies:=1, Collate:=True, Orientation = xlLandscape
' Range("A1").Select
'End Sub
Dim DP As Dialog
On Error GoTo Greh
Application.ScreenUpdating = False
' Run ([Macro1_OZNACI_stanje()])
Set DP = Application.Dialogs(xlDialogPrinterSetup)
With DP
If .Show = -1 Then
ThisWorkbook.Worksheets(".....IZVJEŠTAJ").Range("M8:Q22").PrintOut Copies:=1, _
Collate:=True, Preview:=False
ThisWorkbook.Worksheets(".....IZVJEŠTAJ").Range("A1").Select
End If
End With
Greh:
Exit Sub
End Sub