Hello, dear MrExcel!
I have problem with error message, it shows whether or not is error, how to fix it?
Thank you for your time, thanks in advance kind people!
I have problem with error message, it shows whether or not is error, how to fix it?
Thank you for your time, thanks in advance kind people!
Code:
Sub Ispis_Izvještaja()
Dim DP As Dialog
On Error GoTo Greh
Application.ScreenUpdating = False
Set DP = Application.Dialogs(xlDialogPrinterSetup)
With DP
If .Show = -1 Then
ThisWorkbook.Worksheets("List1").Range("d1").PrintOut Preview:=False
ThisWorkbook.Worksheets("Visine").Range("H1").Select
Else
Exit Sub
End If
End With
Exit Sub
Greh:
MsgBox "NIJE IZAŠLO! PROVJERI PRINTER!"
End Sub
Last edited: