Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2003 Print hidden sheet 2

Status
Not open for further replies.

JudyL

Instructor
Feb 21, 2001
148
US
I want to keep a final calculation sheet hidden from the user but I want to be able to print it and only that sheet. Is there a way to do this without making the sheet visible?
I need to do the same thing for print preview.
 



YES!

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
So, what is the code to use this "camera" tool?
I have
RG.CopyPicture xlScreen, xlPicture
with RG being my range.
 


that should work.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Okay. That is what you meant. Thanks
That works perfectly.
 


Actually the Camera tool works a bit differently than a SNAPSHOT, because it reflects CHANGES to the copied area subsequent to the paste operation.

So once you have your sheet range camera-copied and pasted into another sheet, then any changes that occur in the target sheet will be reflected in the pasted picture copy.

You can see the difference, after selecting a Picture object like the one you coded, or a Camera-generated picture object, which has a REFERENCE in the Formula Bar.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
First, how do you use the Camera tool? It sounds like it actually makes the picture a link. I don't need to do that but want to know how to actually code to use the Camera Tool.
 



Select a range

Activate the Camera (you get a small fine +)

select a cell where you want the result to start in, in order to paste it.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
How do you activate the camera?

Also, I tried having the BeforePrint event call my code to copy and paste to let people print from there but every time I try to print from that workbook, it starts the BeforePrint again. Not sure what to do about that.
 



You have to Application.EnableEvents = False

Camera tool...

Right click in the toolbar

select Customize...

Select the Commands tab

Select the Tools category

Scroll Commands to the Camera Icon

Drag to an existing toolbar.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top