+ Reply to Thread
Results 1 to 5 of 5

Print to a specific printer

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    A far away land
    MS-Off Ver
    Excel 2003
    Posts
    38

    Question Print to a specific printer

    I am trying to use the following code to print to a specific printer but I get an error saying " Method activeprinter of object application_failed". What am I doing wrong? To make things even more confusing it has worked twice out of a hundred times but I cant pinpoint why it worked when it did.

    Please Login or Register  to view this content.
    Last edited by Rodeoclown; 06-17-2010 at 05:34 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Print to a specific printer

    Looks good to me. Is the printer name valid?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-11-2010
    Location
    A far away land
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Print to a specific printer

    Well as far as I know. I have tried several different combinations of the name and tried to send it to the IP as well but they are all giving me the same error.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Print to a specific printer

    Have you tried recording a macro printing to that printer?

  5. #5
    Registered User
    Join Date
    05-11-2010
    Location
    A far away land
    MS-Off Ver
    Excel 2003
    Posts
    38

    Smile Re: Print to a specific printer

    That worked, thanks. I thought I had tried to run a macro like that but I thought then I got out of excel and into the printer config that the macro quit recording.


    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1