+ Reply to Thread
Results 1 to 2 of 2

VBA Specifying Printer

  1. #1
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    VBA Specifying Printer

    Good Afternoon All.

    I am using the following code to specify a label printer that I want data to be printed to.

    Please Login or Register  to view this content.
    What I am trying to figure out though, is SHOULD there be an error and that printer is not available, I need it to go to the regular print dialog box so that the information can still be printed.

    How do write something like

    If printer is not available, then display print dialog box, else print to activeprinter?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Specifying Printer

    Hello snuffnchess,

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 06-30-2017, 10:29 AM
  2. [SOLVED] Solution to changing Default printer code when printer changes
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2016, 03:12 PM
  3. [SOLVED] ExecuteExcel4Macro, active printer - prints to another printer - worked on 2007!
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2015, 10:37 AM
  4. Replies: 0
    Last Post: 11-18-2013, 03:43 AM
  5. Registering Printer Library on computer without printer installed (VBA)
    By Haydan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2013, 03:30 AM
  6. Can I pass printer properties to the default printer?
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2012, 04:11 PM
  7. macro to print 2 copies to default printer, then 1 copy to Adobe PDF printer
    By jwright650 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2011, 01:07 PM

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