Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Code to Set Printer Properties?

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Code to Set Printer Properties?

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Code to Set Printer Properties?

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

I'm using XP. The printer is a network printer. I've tried to add a
printer, selecting the same one, but it doesn't do anything. I'd ideally
really like to use this solution, so if you have any more anwers, I'd really
appreciate them.

Thanks.

"jaf" wrote:

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.


  #8   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Code to Set Printer Properties?

Hi Joyce,
Do you have administrator rights?

John


"Joyce" wrote in message ...
I'm using XP. The printer is a network printer. I've tried to add a
printer, selecting the same one, but it doesn't do anything. I'd ideally
really like to use this solution, so if you have any more anwers, I'd really
appreciate them.

Thanks.

"jaf" wrote:

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

Yes, I do.


"jaf" wrote:

Hi Joyce,
Do you have administrator rights?

John


"Joyce" wrote in message ...
I'm using XP. The printer is a network printer. I've tried to add a
printer, selecting the same one, but it doesn't do anything. I'd ideally
really like to use this solution, so if you have any more anwers, I'd really
appreciate them.

Thanks.

"jaf" wrote:

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.



  #10   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Code to Set Printer Properties?

Hi Joyce,

"I've tried to add a printer, selecting the same one, but it doesn't do anything."

I hope your not navigating to the printer from a list. That will give you the same printer.

Add it as if it were a new printer.

John



"Joyce" wrote in message ...
Yes, I do.


"jaf" wrote:

Hi Joyce,
Do you have administrator rights?

John


"Joyce" wrote in message ...
I'm using XP. The printer is a network printer. I've tried to add a
printer, selecting the same one, but it doesn't do anything. I'd ideally
really like to use this solution, so if you have any more anwers, I'd really
appreciate them.

Thanks.

"jaf" wrote:

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.





  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Code to Set Printer Properties?

Hi John,

I use the wizard and type to path of the printer (I've also tried browing),
click next, it warns me about drivers, etc. and finishes. But a new printer
is not installed.

It's a network printer. I'm obviously missing something.

Thanks

"jaf" wrote:

Hi Joyce,

"I've tried to add a printer, selecting the same one, but it doesn't do anything."

I hope your not navigating to the printer from a list. That will give you the same printer.

Add it as if it were a new printer.

John



"Joyce" wrote in message ...
Yes, I do.


"jaf" wrote:

Hi Joyce,
Do you have administrator rights?

John


"Joyce" wrote in message ...
I'm using XP. The printer is a network printer. I've tried to add a
printer, selecting the same one, but it doesn't do anything. I'd ideally
really like to use this solution, so if you have any more anwers, I'd really
appreciate them.

Thanks.

"jaf" wrote:

Hi Joyce,
What version of Windows are you running?
In Vista you need to select "add a printer", select the same model, it will make a copy.
Check the port setting one the first printer. USB printer usually have funky settings.


John


"Joyce" wrote in message ...
Hi there,

I tried what you suggested, but Copy isn't available and Ctrl + C and Ctrl +
drag don't work either.

I'd love to be able to do this, though, if you have any other way of doing it.

Thanks!

"jaf" wrote:

Hi Joyce,
In Windows ExplorerControl panelprinters you can copy & paste your printer.
You can rename the 2nd copy "Draft" and set its properties anyway you wish.
That will set the default properties for that copy.

In Excel you only need to select the "Draft" printer to get a B&W draft.

John



"Joyce" wrote in message ...
Hi and thanks for your response.

I'm sorry, I should have been a bit more specific.

I actually have a few other settings I want to set that are really
printer-specific, and I'm not able to set in Page Setup.

I guess because the printer resides outside of Excel my code doesn't record?

I'd really like to have one button that sets the actual printer properties
in one way for some jobs and another for other jobs.

Any further help would be appreciated.

Thanks!

"OssieMac" wrote:

Hi Joyce,

You should be able to record it. It is in Page Setup on the Sheet tab.
However, the following code should do it. If you record it, you can delete
the rows of code that you don't change the defaults.

With ActiveSheet.PageSetup
.Draft = True
.BlackAndWhite = True
End With

Depending on the printer, draft quality may not work. I think that the
PrintQuality parameter takes precedence and cannot always be changed.


--
Regards,

OssieMac


"Joyce" wrote:

Hello,

I often need to print in draft mode, black ink only. Then, I go back to
regular mode, color.

I would really like to add one toolbar button with code behind it that sets
the printer properties to black and another to set back to color.

Is it possible to do this? I've tried the recorder, but nothing is captured.

Thanks.




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 document printer properties overwrite users output bin joost Excel Discussion (Misc queries) 0 November 8th 06 08:27 AM
Save with preset Printer Properties alex3867 Excel Discussion (Misc queries) 0 August 18th 06 02:24 PM
Detect printer properties Jos Vens[_2_] Excel Programming 3 February 16th 06 08:25 AM
Changing control properties/code through code Ajit Excel Programming 3 October 18th 04 09:03 PM
Use VBA to access Printer Properties (Resolution, Tray etc) Alan Excel Programming 4 April 14th 04 12:11 AM


All times are GMT +1. The time now is 04:55 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"