Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Print hidden sheets

I have designed a workbook containing several sheets. The sheet1 contains
all input data that will be entered by the user and other sheets are meant
for giving output. The information entered in 1st sheet will be manipulated
and spread across all other sheets. I do not want the user to access other
sheets and disturb the formulas, formats and design. So, I want them to be
hidden. However, when the user chooses to print the output, I want the hidden
sheets printed directly on printer without displaying on the screen. Help
Please.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Print hidden sheets

someone kindly responded to your earlier post on this subject.
See if following does what you want.

Sub PrinHiddenSheet()
Application.ScreenUpdating = False
With ThisWorkbook.Sheets(2) '<change as required
.Visible = True
.PrintOut Copies:=1, Collate:=True
.Visible = xlHidden
End With
Application.ScreenUpdating = True
End Sub
--
jb


"Ravi Kumar" wrote:

I have designed a workbook containing several sheets. The sheet1 contains
all input data that will be entered by the user and other sheets are meant
for giving output. The information entered in 1st sheet will be manipulated
and spread across all other sheets. I do not want the user to access other
sheets and disturb the formulas, formats and design. So, I want them to be
hidden. However, when the user chooses to print the output, I want the hidden
sheets printed directly on printer without displaying on the screen. Help
Please.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Print hidden sheets

John, I am sorry I was not sure whether my question was posted or not 1st
time. It gave some error message 1st time which made me repost my question.
Thank u for the help rendered.

"john" wrote:

someone kindly responded to your earlier post on this subject.
See if following does what you want.

Sub PrinHiddenSheet()
Application.ScreenUpdating = False
With ThisWorkbook.Sheets(2) '<change as required
.Visible = True
.PrintOut Copies:=1, Collate:=True
.Visible = xlHidden
End With
Application.ScreenUpdating = True
End Sub
--
jb


"Ravi Kumar" wrote:

I have designed a workbook containing several sheets. The sheet1 contains
all input data that will be entered by the user and other sheets are meant
for giving output. The information entered in 1st sheet will be manipulated
and spread across all other sheets. I do not want the user to access other
sheets and disturb the formulas, formats and design. So, I want them to be
hidden. However, when the user chooses to print the output, I want the hidden
sheets printed directly on printer without displaying on the screen. Help
Please.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need my Hidden Rows to stay hidden when I print the sheet. Rosaliewoo Excel Discussion (Misc queries) 2 July 20th 06 07:51 PM
Print Array for hidden sheets using VBA Ant Excel Discussion (Misc queries) 1 March 27th 06 11:24 AM
Print Array for hidden sheets using VBA Ant Excel Programming 0 March 23rd 06 08:26 AM
Print Array for hidden sheets using VBA Ant Excel Discussion (Misc queries) 0 March 22nd 06 04:31 PM
"With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets Punsterr Excel Programming 3 February 21st 06 04:01 AM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"