#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel Macros

Is it possible to create a macro in Excel that will allow you to print in
black and white or color. For example, I want to create two macro buttons in
my worksheet that allows me to choose if I want printing in color, or black
and white, depening on which macro button I select.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Macros

Use the macro to record while you do each setup.

Assign these macros to buttons craeted from the Forms Toolbar.


Gord Dibben MS Excel MVP

On Fri, 29 May 2009 14:19:01 -0700, DRowell
wrote:

Is it possible to create a macro in Excel that will allow you to print in
black and white or color. For example, I want to create two macro buttons in
my worksheet that allows me to choose if I want printing in color, or black
and white, depening on which macro button I select.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel Macros

I had done that, but when I go to print, whichever macro I recorded last is
how the documents always seem to print. For example, I recorded a macro and
changed the printing so it would be in black and white first, then in color
with the second macro. I then assigned the macros to buttons, but when I
click on the "black and white" version, it comes out in color because that is
how the last page printed came out.

Is there somewhere different, other than print properties, that I need to
change from color to black and white?

Thank you.

Don

"Gord Dibben" wrote:

Use the macro to record while you do each setup.

Assign these macros to buttons craeted from the Forms Toolbar.


Gord Dibben MS Excel MVP

On Fri, 29 May 2009 14:19:01 -0700, DRowell
wrote:

Is it possible to create a macro in Excel that will allow you to print in
black and white or color. For example, I want to create two macro buttons in
my worksheet that allows me to choose if I want printing in color, or black
and white, depening on which macro button I select.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Macros

I have tested my theory on a worksheet in Excel 2003 and cannot replicate
the problem.

Two macros, two buttons. Output is changed depending upon which macro is
run.

Your recorded code should look like this.

With ActiveSheet.PageSetup
bunch of other setup linesf
.BlackAndWhite = True or False
more linesf
End With


Gord

On Fri, 29 May 2009 15:36:01 -0700, DRowell
wrote:

I had done that, but when I go to print, whichever macro I recorded last is
how the documents always seem to print. For example, I recorded a macro and
changed the printing so it would be in black and white first, then in color
with the second macro. I then assigned the macros to buttons, but when I
click on the "black and white" version, it comes out in color because that is
how the last page printed came out.

Is there somewhere different, other than print properties, that I need to
change from color to black and white?

Thank you.

Don

"Gord Dibben" wrote:

Use the macro to record while you do each setup.

Assign these macros to buttons craeted from the Forms Toolbar.


Gord Dibben MS Excel MVP

On Fri, 29 May 2009 14:19:01 -0700, DRowell
wrote:

Is it possible to create a macro in Excel that will allow you to print in
black and white or color. For example, I want to create two macro buttons in
my worksheet that allows me to choose if I want printing in color, or black
and white, depening on which macro button I select.




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
Excel Macros TJAC Excel Discussion (Misc queries) 1 June 9th 08 04:21 PM
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM


All times are GMT +1. The time now is 11:40 PM.

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

About Us

"It's about Microsoft Excel"