+ Reply to Thread
Results 1 to 3 of 3

Test printer parameter before continuing with macro

  1. #1
    Chris Salcedo
    Guest

    Test printer parameter before continuing with macro

    I have a macro that one of the things it does is set the page size to
    11x17.

    This works great on HP printers (that support that size of course) but
    there are some users that use a konica printer that uses tabloid
    instead of 11x17. (same size, its just the printer driver recognizes
    one and not the other)


    to set one up would be

    ..PaperSize = xlPaper11x17

    and for the other one it would be

    ..PaperSize = xlPaperTabloid

    Now my question,

    Is there a way that I can test first if the printer driver supports
    Tabloid or 11x17??

    something like

    if ActiveSheet.PageSetup.PaperSize = xlPaper11x17 returns error then
    ActiveSheet.PageSetup.PaperSize = xlPaperTabloid



    Thanks

    Chris


  2. #2
    Tom Ogilvy
    Guest

    Re: Test printer parameter before continuing with macro

    mayber something here you can use:

    http://support.microsoft.com/kb/244639/en-us
    OFF2000: Macro to Obtain a List of Paper Names Supported by the Active
    Printer

    --
    Regards,
    Tom Ogilvy


    "Chris Salcedo" <csalcedo@gmail.com> wrote in message
    news:1154235078.779968.238280@b28g2000cwb.googlegroups.com...
    >I have a macro that one of the things it does is set the page size to
    > 11x17.
    >
    > This works great on HP printers (that support that size of course) but
    > there are some users that use a konica printer that uses tabloid
    > instead of 11x17. (same size, its just the printer driver recognizes
    > one and not the other)
    >
    >
    > to set one up would be
    >
    > .PaperSize = xlPaper11x17
    >
    > and for the other one it would be
    >
    > .PaperSize = xlPaperTabloid
    >
    > Now my question,
    >
    > Is there a way that I can test first if the printer driver supports
    > Tabloid or 11x17??
    >
    > something like
    >
    > if ActiveSheet.PageSetup.PaperSize = xlPaper11x17 returns error then
    > ActiveSheet.PageSetup.PaperSize = xlPaperTabloid
    >
    >
    >
    > Thanks
    >
    > Chris
    >




  3. #3
    Registered User
    Join Date
    07-16-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Test printer parameter before continuing with macro

    I found an easy solution for this.

    Please Login or Register  to view this content.

+ 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