Can I hide data on a sheet when visible but it print it when I select print

ghrek

Active Member
Joined
Jul 29, 2005
Messages
426
Hi

I have a workbook that data in cells A9:D23 I need hiding when the sheet is visible but I need the data printing from the sheet when I print.

The data that goes into cells A9:D23 are further down the workbook and are linked.

I had protected the cells so couldn't amend but people got confused so think easiest way is to hide when viewing but print

Can this be done?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
data in cells A9:D23 I need hiding when the sheet is visible
Hiding only those cells is not possible, you will have to decide whether to hide the columns (A:D) or rows (9:23).
 
Upvote 0
Thought that was going to be the case.

I can shade it with a macro , un shade when print and re shade cant I?

When shaded it will still load the data but just not show it
 
Upvote 0
Maybe something like this:
VBA Code:
Sub PrintAll()
Application.ScreenUpdating = False
With ActiveSheet
    .Rows("9:23").Hidden = False
    .PrintOut
    .Rows("9:23").Hidden = True
End With
Application.ScreenUpdating = True
End Sub
 
Upvote 0
I can shade it with a macro , un shade when print and re shade cant I?
When shaded it will still load the data but just not show it
If other content on those columns and / or rows must remain visible, then that is probably the most obvious option, also from a visual point of view.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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
Back
Top