A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I don't know of code to accomplish, what you want.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Just a note, I don't know too much about programming in VBA and most of the macros I've used have been copied from other sources. Here's the issue I'm dealing with
Context:
Problem:
Question:
Here are the macros I am using to print to the label printer
Application.ActivePrinter = "ZDesigner GC420d (EPL) on Ne00:"
End Sub
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
End Sub
SetLabelPrinter
PrintInitial
End Sub
Any help would be greatly appreciated.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I don't know of code to accomplish, what you want.
Hi Francis,
Thank You for your reply. In this case I would like to try and avoid dialog windows if at all possible. One in necessary so I use it for the requirement for the Office printer.
I guess what I'm getting at is that I would like to print to whatever the default printer is set to. The default printer shouldn't change even if a different printer is selected.
I would think this would be easy to accomplish but the answer hasn't been easy to find.
The application that I have the following code in, is used by several people. We all have a common printer that is used. Possibly you could this code with some modifications.
Sub Print_Dialog_Box()
Dim bTemp As Boolean
'Calls the normal print window.
bTemp = Application.Dialogs(xlDialogPrint).Show
End Sub
The code calls the printer(s) that the user has available on their unit. It calls the normal print dialog window.
Good luck