List available printers?

Hello guys,

I am having a hard time to access a list of available printers. How do I do that I am trying to print mail merged labels. When I record the macro, it sets the activePrinter to a string. I wish to set that value using a drop down list GUI. Thank you.



Answer this question

List available printers?

  • Patrick251

    This may be your solution

    http://word.mvps.org/FAQs/MacrosVBA/AvailablePrinters.htm


    Hope this helps.


  • Jim Hudson

    OMG, it works. Thank you so much. You are my hero.
  • Jim_B

    I've been looking as well. The only thing I can find for you is that you can find what the active printer is under application, but that's not what you are looking for. If you have VB, you could write a little program that will return the printers for you and call it from VBA.

  • kkos

    Thanks for the reply. How do I do that in VB I don't know a thing about hardware access or device access in any language. Please let me know which library or object I can use to retrieve the information, thank you.
  • Ted.

    Anyone All I need is a function that returns a list of available printers. I am unable to find it in VBA reference. Thank you.


  • List available printers?