Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ken Mitchell
 
Posts: n/a
Default Prevent Printing of Specific Cells

Hi, folks. I'm looking for a way to format a cell so that the cell(s) will
_display_ on the worksheet, but not _print_ when the worksheet is printed.

I'm working on a sales worksheet. Some data on the worksheet, such as the
"dealer cost", need to be visible to the salesman and used in some
calculations, but if the salesman prints the worksheet, I don't want those
items to print.

Any thoughts?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default Prevent Printing of Specific Cells

Ken, have a look here for a way to do it,

http://www.rondebruin.nl/print.htm#Hide
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Ken Mitchell" wrote in message
...
Hi, folks. I'm looking for a way to format a cell so that the cell(s)
will
_display_ on the worksheet, but not _print_ when the worksheet is printed.

I'm working on a sales worksheet. Some data on the worksheet, such as the
"dealer cost", need to be visible to the salesman and used in some
calculations, but if the salesman prints the worksheet, I don't want those
items to print.

Any thoughts?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Mitchell
 
Posts: n/a
Default Prevent Printing of Specific Cells

Hmmm, I must not be doing it quite right.

I copied the appropriate sections of the code and ended up with

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.Rows("31:31").EntireRow.Hidden = True
.PrintOut
.Rows("31:31").EntireRow.Hidden = False
End With
End Sub

because I wanted to suppress printing for the cells in Row 31. Now it
prints the page twice; once with row 31 suppressed, and once with row 31
visible.

Any idea what I did wrong? Thanks.

"Paul B" wrote:

Ken, have a look here for a way to do it,

http://www.rondebruin.nl/print.htm#Hide
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Ken Mitchell" wrote in message
...
Hi, folks. I'm looking for a way to format a cell so that the cell(s)
will
_display_ on the worksheet, but not _print_ when the worksheet is printed.

I'm working on a sales worksheet. Some data on the worksheet, such as the
"dealer cost", need to be visible to the salesman and used in some
calculations, but if the salesman prints the worksheet, I don't want those
items to print.

Any thoughts?

Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Prevent Printing of Specific Cells

Read the code Ken

I use this to cancel the normal print
Cancel = True


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ken Mitchell" wrote in message ...
Hmmm, I must not be doing it quite right.

I copied the appropriate sections of the code and ended up with

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.Rows("31:31").EntireRow.Hidden = True
.PrintOut
.Rows("31:31").EntireRow.Hidden = False
End With
End Sub

because I wanted to suppress printing for the cells in Row 31. Now it
prints the page twice; once with row 31 suppressed, and once with row 31
visible.

Any idea what I did wrong? Thanks.

"Paul B" wrote:

Ken, have a look here for a way to do it,

http://www.rondebruin.nl/print.htm#Hide
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Ken Mitchell" wrote in message
...
Hi, folks. I'm looking for a way to format a cell so that the cell(s)
will
_display_ on the worksheet, but not _print_ when the worksheet is printed.

I'm working on a sales worksheet. Some data on the worksheet, such as the
"dealer cost", need to be visible to the salesman and used in some
calculations, but if the salesman prints the worksheet, I don't want those
items to print.

Any thoughts?

Thanks.






  #5   Report Post  
Posted to microsoft.public.excel.misc
Bill (Unique as my name)
 
Posts: n/a
Default Prevent Printing of Specific Cells

The Stupid Way:

Link conditional formatting to a cell value to change the font and
background color to what ever color you decide. Change the value of
the cell in code or manually before printing. After printing, change
the value back.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Ken Mitchell
 
Posts: n/a
Default Prevent Printing of Specific Cells

Aha! Thanks. I appreciate the help.

"Ron de Bruin" wrote:

Read the code Ken

I use this to cancel the normal print
Cancel = True


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ken Mitchell" wrote in message ...
Hmmm, I must not be doing it quite right.

I copied the appropriate sections of the code and ended up with

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.Rows("31:31").EntireRow.Hidden = True
.PrintOut
.Rows("31:31").EntireRow.Hidden = False
End With
End Sub

because I wanted to suppress printing for the cells in Row 31. Now it
prints the page twice; once with row 31 suppressed, and once with row 31
visible.

Any idea what I did wrong? Thanks.

"Paul B" wrote:

Ken, have a look here for a way to do it,

http://www.rondebruin.nl/print.htm#Hide
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Ken Mitchell" wrote in message
...
Hi, folks. I'm looking for a way to format a cell so that the cell(s)
will
_display_ on the worksheet, but not _print_ when the worksheet is printed.

I'm working on a sales worksheet. Some data on the worksheet, such as the
"dealer cost", need to be visible to the salesman and used in some
calculations, but if the salesman prints the worksheet, I don't want those
items to print.

Any thoughts?

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
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 05:18 PM
find cells that contain specific characters mshornet Excel Worksheet Functions 8 November 23rd 05 02:02 PM
countif >0, specific cells Renee - California Excel Worksheet Functions 9 September 7th 05 11:31 PM
keep specific cells from being changed. bronsonbits Excel Discussion (Misc queries) 1 September 7th 05 06:44 PM
How can I find and format specific cells automatically in Excel? Amy Excel Worksheet Functions 1 August 6th 05 03:00 PM


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

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"