Or this, to print all selected sheets in 1 PDF file:
Sub ImprimaFoaieActivaPDF()
ActiveWindow.SelectedSheets.PrintOut
Application.ActivePrinter = "Adobe PDF din Ne02:"
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,""Adobe PDF din Ne02:"",,TRUE,,FALSE)"
End Sub
|