Macro to restrict printing to black and white

D

dalymjl

I have a spreadsheet which makes extensive use of colour for ease of
user input. A selected area of the sheet has to be printed and to do
this I use a macro assigned to a button which selects the relevant
cells and queues them to the printer. This is the code in the macro.

Sheets("sheetname").Select
Range("A1:I60").Select
Selection.PrintOut Copies:=1, Collate:=True

Is it possible to include something in that code which would ensure
that the output prints in black and white or greyscale and not in
colour?

Any help welcomed.

regards

mjd
 
J

Jim Cone

This should work, however I didn't elect to waste a sheet of paper...
With Sheets("sheetname")
.PageSetup.BlackAndWhite = True
.Range("A1:I60").PrintOut Copies:=1, Collate:=True
End With
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
Excel Add-ins / Excel Programming
(check out "Print Selections Only")



"dalymjl"
wrote in message
I have a spreadsheet which makes extensive use of colour for ease of
user input. A selected area of the sheet has to be printed and to do
this I use a macro assigned to a button which selects the relevant
cells and queues them to the printer. This is the code in the macro.
Sheets("sheetname").Select
Range("A1:I60").Select
Selection.PrintOut Copies:=1, Collate:=True
Is it possible to include something in that code which would ensure
that the output prints in black and white or greyscale and not in
colour?
Any help welcomed.
regards
mjd
 
D

dalymjl

Jim said:
This should work, however I didn't elect to waste a sheet of paper...
With Sheets("sheetname")
.PageSetup.BlackAndWhite = True
.Range("A1:I60").PrintOut Copies:=1, Collate:=True
End With
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
Excel Add-ins / Excel Programming
(check out "Print Selections Only")



"dalymjl"
wrote in message
I have a spreadsheet which makes extensive use of colour for ease of
user input. A selected area of the sheet has to be printed and to do
this I use a macro assigned to a button which selects the relevant
cells and queues them to the printer. This is the code in the macro.
Sheets("sheetname").Select
Range("A1:I60").Select
Selection.PrintOut Copies:=1, Collate:=True
Is it possible to include something in that code which would ensure
that the output prints in black and white or greyscale and not in
colour?
Any help welcomed.
regards
mjd


Thanks Jim.

That worked a treat!


regards

mjd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top