Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Location: Ireland
Posts: 29
Default Macro to restrict printing to black and white

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Macro to restrict printing to black and white


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
--
dalymjl
  #3   Report Post  
Junior Member
 
Location: Ireland
Posts: 29
Default

Quote:
Originally Posted by Jim Cone View Post
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
--
dalymjl

Thanks Jim.

That worked a treat!


regards

mjd
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Color-Coded Worksheet in Black & White Mode in Excel 2003 Mister Softie Excel Worksheet Functions 1 September 3rd 07 01:11 PM
black and white display jaidencam Excel Worksheet Functions 1 January 4th 07 02:57 AM
View the rows in alternate black and white jjaammess Excel Worksheet Functions 2 January 23rd 06 03:43 PM
Why is my printer printing white fonts as black? Howie Excel Worksheet Functions 2 November 24th 05 09:33 PM
convert a graph to black and white Help with Thesis Charts and Charting in Excel 1 May 26th 05 07:25 PM


All times are GMT +1. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"