+ Reply to Thread
Results 1 to 3 of 3

VBA or Macro to select a specific printer profile?

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    switzerland
    MS-Off Ver
    Excel 2013
    Posts
    4

    VBA or Macro to select a specific printer profile?

    Hi all,
    Is it possible to select a specific printer profile using VBA or a macro? I send an Excel file by email to multiple users, I would like to print the returns Duplex and stapled. Have done the code, but some returns have the correct profile saved, others go to Default Settings. I have at the moment the Printer Dialog box open automatically so I can manually select the correct Profile, but it would be better automatically.
    Thanks for any help or suggestion.
    Dan

    Excel 2010
    Network Printer - Canon

  2. #2
    Forum Contributor
    Join Date
    01-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    240

    Re: VBA or Macro to select a specific printer profile?

    I'd suggest recording a macro in excel and adjusting the resulting code accordingly. Things like page set up will work, things like staples / duplex are likely to require Windows API call or changing registry settings - this gets quite complicated very quickly. Sendkeys is sometimes used to simplify code but its not a great solution
    Please consider adding a * if I helped.

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    switzerland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: VBA or Macro to select a specific printer profile?

    Thanks Brendan,
    I had already recorded a macro, but there's no details recorded when I try to change the Profile selection. The page set up seems fine, just when the file is completed, saved and returned by other users, the Printer Profile Returns to default settings rather than the one I saved in the template. I think the user edits, then prints the file on their machine, which doesn't have my Printer profile saved.
    Think I'll have to manually select the print Profile via the Dialog box.
    Dan

+ 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. [SOLVED] Macro that select the printer
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2015, 03:43 PM
  2. Macro to Select Printer
    By JoeyDvivre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2010, 02:03 AM
  3. Select Printer Macro
    By mdma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2008, 04:49 AM
  4. [SOLVED] User select printer in print macro
    By sarah_tennessee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2006, 03:00 PM
  5. create a pause in print macro to allow user to select printer
    By Scott53 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2005, 03:05 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