MenstonBantam
New Member
- Joined
- Sep 27, 2022
- Messages
- 1
- Office Version
- 2021
- Platform
- Windows
Hi,
I have a VBA code to print to PDF which then changes excel printer to PDF. However I want to ise a second button to print to my office printer. Unfortunately the code I am using just prints to PDF. Can anyone help.
Sub Transmittal_Print_PDF()
'
' Print Transmittal to PDF
'
Application.Goto Reference:="Print_Area"
Selection.PrintOut Preview:=True, ActivePrinter:="Microsoft Print To PDF"
End Sub
Sub Transmittal_Print_Office()
'
' Print Transmittal
'
ActiveWindow.SelectedSheets.PrintOut Copies:=1, collate:=True, IgnorePrintAreas:=False
End Sub
I have a VBA code to print to PDF which then changes excel printer to PDF. However I want to ise a second button to print to my office printer. Unfortunately the code I am using just prints to PDF. Can anyone help.
Sub Transmittal_Print_PDF()
'
' Print Transmittal to PDF
'
Application.Goto Reference:="Print_Area"
Selection.PrintOut Preview:=True, ActivePrinter:="Microsoft Print To PDF"
End Sub
Sub Transmittal_Print_Office()
'
' Print Transmittal
'
ActiveWindow.SelectedSheets.PrintOut Copies:=1, collate:=True, IgnorePrintAreas:=False
End Sub