DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Application.Dialogs(xlDialogPrinterSetup).Show
Dim prt As Printer
For Each prt In Printers
If prt.DeviceName = "[COLOR="Red"]printer adi[/COLOR]" Then
Set Printer = prt
Exit For
End If
Next
Sub a()
Dim Yazıcı As String
Yazıcı = Application.Dialogs(xlDialogPrinterSetup).Show
If Yazıcı = False Then Exit Sub
End Sub
Sub PrintToAnotherPrinter()
Dim STDprinter As String
STDprinter = Application.ActivePrinter
Application.ActivePrinter = "[COLOR="Red"]hp laserjet 1022 on ne02:[/COLOR]"
' change printer
ActiveSheet.PrintOut
' prints the active sheet
Application.ActivePrinter = STDprinter
' change back to standard printer
End Sub
STDprinter = Application.ActivePrinter
Application.ActivePrinter = "Z LP 2864 on ne01:"
Application.ActivePrinter = "Z LP 2864 on ne02:"
Application.ActivePrinter = "Z LP 2864 on ne03:"