Don't print one thing on page

kason

New Member
Joined
Sep 11, 2002
Messages
1
We have a master log that we print for our customers. On the log we use the AutoFilter. We have labeled the cell so our users here know what the AutoFilter is for. However, we would like for that not to print with the rest of the log. Is there a way to do that?
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Anne Troy

MrExcel MVP
Joined
Feb 18, 2002
Messages
2,603
Any number of ways. Hard to say which one will work if you don't tell us WHERE that information is.

Try this:
Set the print area of the page. For instance, select the cells of the first row you want to print and hit shift-ctrl-down arrow. File-Print area, Set print area.
 

kskinne

Well-known Member
Joined
Feb 17, 2002
Messages
1,267
Office Version
  1. 365
Platform
  1. Windows
hi and welcome to the board -

what you could do is write a macro that changes the font color of the cells you do not want to show up on your print job so that the font color matches the cell background color. assuming background color is white and font color is black (defaults), and assuming that cell you want to not print is cell A1, you could use this macro:

Sub Print_Me()
Range("A1").Select
Selection.Font.ColorIndex = 2
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Selection.Font.ColorIndex = 0
End Sub

HTH
kevin
 

Joe Was

MrExcel MVP
Joined
Feb 19, 2002
Messages
7,539
If you are printing using a macro add code to change the Font color of the information you do not want to print to "White" at the begining of your print macro. Then change the informations Font color back to "xlAutomatic" below the print code and before you exit the macro code. JSW
 

Watch MrExcel Video

Forum statistics

Threads
1,118,821
Messages
5,574,515
Members
412,599
Latest member
Schu94
Top