+ Reply to Thread
Results 1 to 2 of 2

Default printer selection in Excel macro

  1. #1
    Charlie
    Guest

    Default printer selection in Excel macro

    I am writing a simple macro to allow some of the people in our company to
    click on a toolbar button that will select our fax printer, send a fax, and
    then reset the selected printer to the default.

    What do I put after this:

    Application.ActivePrinter =

    Thanks,


    Charlie

  2. #2
    Ron de Bruin
    Guest

    Re: Default printer selection in Excel macro

    Try this

    Dim DPrinter As String
    DPrinter = Application.ActivePrinter
    Application.ActivePrinter = "Microsoft Office Document Image Writer on Ne01:"
    ActiveSheet.PrintOut
    Application.ActivePrinter = DPrinter



    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Charlie" <[email protected]> wrote in message news:[email protected]...
    >I am writing a simple macro to allow some of the people in our company to
    > click on a toolbar button that will select our fax printer, send a fax, and
    > then reset the selected printer to the default.
    >
    > What do I put after this:
    >
    > Application.ActivePrinter =
    >
    > Thanks,
    >
    >
    > Charlie




+ 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