Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Sep 2003
    Location
    Toronto, Ontario, Canada
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print Dialog Box (Excel 2003 VBA)

    I have a macro that will prompt for a selection of cells and then print them. However, it always uses the windows default printer. How can I make it open a print dialog box to select the appropriate printer?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Print Dialog Box (Excel 2003 VBA)

    Do the replies to post 293296 help?

    StuartR

  3. #3
    2 Star Lounger
    Join Date
    Sep 2003
    Location
    Toronto, Ontario, Canada
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print Dialog Box (Excel 2003 VBA)

    Hmm, is there no print dialog box in VBA?
    I know there is in VB...

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Print Dialog Box (Excel 2003 VBA)

    Is:

    Excel.Application.Dialogs(xlDialogPrint).Show

    or perhaps

    Excel.Application.Dialogs(xlDialogPrinterSetup).Sh ow

    what you are looking for?
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    2 Star Lounger
    Join Date
    Sep 2003
    Location
    Toronto, Ontario, Canada
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print Dialog Box (Excel 2003 VBA)

    Perfect, thanks!

Posting Permissions

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