HunterN
Active Member
- Joined
- Mar 19, 2002
- Messages
- 479
Hi,
I am using the following code to open the PrinterSetup Dialog box and select the color printer (which is not my default printer). Once the setup window appears I want to be able to unclick the 'Print in Grayscale' box, to make sure it prints in color. But using the following code does not show the Color tab for the color printer when I select it from the dialog box.
Here is the code I got from the 'EXCEL FORUM' website. It brings up the dialog box fine. I click the printer I want and then click the setup button, but it's like it doesn't recognize that I have changed the printer.
Even answering the message box when it asks 'Do you want to print in color' doesn't seem to help.
My default printer is not the color printer. The user's printer is a color printer and they want this report to come out in color.
Thanks for any thoughts.
Nancy
I am using the following code to open the PrinterSetup Dialog box and select the color printer (which is not my default printer). Once the setup window appears I want to be able to unclick the 'Print in Grayscale' box, to make sure it prints in color. But using the following code does not show the Color tab for the color printer when I select it from the dialog box.
Here is the code I got from the 'EXCEL FORUM' website. It brings up the dialog box fine. I click the printer I want and then click the setup button, but it's like it doesn't recognize that I have changed the printer.
Code:
Function PrintWithColorCheck()
Dim i As Long
Worksheets("CPS8").Select
Application.Dialogs(xlDialogPrinterSetup).Show
With ActiveSheet
.PageSetup.BlackAndWhite = _
MsgBox("Do you want to print in color?", vbYesNo, _
"Print out") = vbNo
.PrintOut copies:=1
'* Tidy up
.PageSetup.BlackAndWhite = False
End With
End Function
Even answering the message box when it asks 'Do you want to print in color' doesn't seem to help.
My default printer is not the color printer. The user's printer is a color printer and they want this report to come out in color.
Thanks for any thoughts.
Nancy