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?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Anne Troy

MrExcel MVP
Joined
Feb 18, 2002
Messages
2,607
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,117
Messages
5,857,482
Members
431,882
Latest member
saaaaaaaaaaaaaaaaaaaaaa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top