Consulting

Results 1 to 5 of 5

Thread: Display Print Dialog with "Selection" as Default

  1. #1
    VBAX Regular
    Joined
    Apr 2017
    Posts
    66
    Location

    Display Print Dialog with "Selection" as Default

    I want to display the print dialog box with "Selection" pre-selected as the default under "Print what". Want to give users the option of selecting a printer without also having to choose "selection".

    ws.Range("C71:F95").Select
    
    Application.Dialogs(xlDialogPrint).Show  'Displays the print dialog - but how to set default to "Selection"?
    Any help appreciated.

  2. #2
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    try:

    Application.Dialogs(xlDialogPrinterSetup).Show
    Peace of mind is found in some of the strangest places.

  3. #3
    VBAX Regular
    Joined
    Apr 2017
    Posts
    66
    Location
    That lets me choose a printer, but doesn't integrate the selection

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,727
    Location
    You can use this:

    Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 1
    Be as you wish to seem

  5. #5
    VBAX Regular
    Joined
    Apr 2017
    Posts
    66
    Location
    That's just awesome - thank you!

Posting Permissions

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