Is it possible to prevent the contents of specific cells (or entire row or column) from printing in Excel? I need to maintain the cell size. I've been setting the text color to white before printing, but it seems there should be an automagic way of doing this.
|
You can apply normal (not conditional) formatting to achieve this. Select the cell, row, column in question and go to Cell Formatting (Windows shortcut it Ctrl + 1). For number format select Custom and for Type set the format to be: "";"";"";"" This tells Excel to display an empty string if the cell contains a positive number, negative number, zero or text. So any value that is not an error will be hidden on the screen and when printed. |
|||
|
|
You can "hide" entire rows or columns by right clicking the row/column and selecting hide. This will prevent the row/column to be printed. If you have multiple rows/columns you can highlight them by "click drag" if the are next to each other or by "crtl click" if they are not next to each other. When rows/columns are hidden their number/letter is not shown. To unhide them just highlight the rows/columns on either side and "right click" and select unhide. I am not sure if you can prevent individual cells from printing other than changing the font Color. You maybe able to automate this with conditional formatting. |
|||
|
|
|
When I needed to do what you're saying, what I would do is: Use the function in the code editor(vba):
to hide the columns or rows, do the printout, and then unhide it. Example:
Or change the respective part tohide columns (this example hide column B and D)
Or hide all rows with a blank cell in column A
Links: |
|||
|
|
|
Another simple way is to temporarily clear the contents of the cell by highlighting the selected cells - right click and select "Clear Contents".
Now you can print and then click the Undo button and all is back to normal. |
||||
|
|
|
Besides hiding columns or rows as is suggested above. You might look at Custom Views as a simple way to apply and un-apply what you don't want to show. For instance if you print one column for a salesperson, another for a warehouse, and another with everything, you may create a custom view for each and easily switch to either. |
|||
|
|
|
You could try hiding the row by right clicking on it and pressing hide. http://spreadsheets.about.com/od/excelformatting/qt/070814_hide.htm |
|||||
|
