I believe you would have to either use the common dialog control, or manually
populate a list of printers to pick from. The following will populate a
combo:
Private Sub FillPrinterCombo
Dim prtLoop As Printer
' Don't forget to set the RowSourceType = "Value List"
For Each prtLoop In Application.Printers
cboPrinters.AddItem(prtLoop.DeviceName)
Next prtLoop
End Sub
And then when they select a printer in the combo, set the printer as follows:
Set Application.Printer = Application.Printers(cboPrinters)
Thanks for this code - just what i was looking for but how do I use it?
Where would I put this code and how would I call it? Tried creating it in a
module and then on gotfocus of combo calling it, but this didn't work - get
error unknown function defined.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.