drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and thanks in advance!
In my company I have 5 printers
I know howto select as the ActivePrinter one of them
But If I do not want to put as the Activeprinter one of them, I want only put the selected printer within a cell eg: RANGE("A1")
I do not want to use:
In my company I have 5 printers
I know howto select as the ActivePrinter one of them
Code:
Application.Dialogs(xlDialogPrinterSetup).Show
But If I do not want to put as the Activeprinter one of them, I want only put the selected printer within a cell eg: RANGE("A1")
I do not want to use:
Code:
Sub SetPrinter()
Dim wActPrinter As String: wActPrinter = Application.ActivePrinter
Dim bPrt As Boolean: bPrt = Application.Dialogs(xlDialogPrinterSetup).Show
If Not bPrt Then Exit Sub
Range("A1") = ActivePrinter
'MsgBox ActivePrinter
Application.ActivePrinter = wActPrinter
End Sub