Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Printer Collection??? (Word 2000)

    Is there a printer colection (or equivalent) that I can use in VBA code for Word 2000 to give users the choice of printers?

    Thanks,
    Richard Barrett

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printer Collection??? (Word 2000)

    Sadly, no. You can use the Windows API...

    <A target="_blank" HREF=http://support.microsoft.com/support/kb/articles/Q200/6/11.ASP>Q200611 - Enumerating Local and Network Printers</A>

    This code writes 4 fields to the debug window; you might find that all you need is the printer "name" (third parameter) to feed into:

    Application.ActivePrinter = strNewPrinterName

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Printer Collection??? (Word 2000)

    I was afraid of that... but many thanks for the info about the Win API. I tried it, and that seems to work well.

    Option Compare Database, the first line in the code, doesn't seem to be a valid command in Word 2000 VBA. Do you by any chance know how vital that is? I commented it out, and there seemed to be no failure as a result.

    Thanks.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Printer Collection??? (Word 2000)

    Good catch. That option only is relevant in Access modules.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •