Thread
:
Printing a hidden sheet
View Single Post
#
5
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Printing a hidden sheet
try this from anywhere in the workbook. Selections are NOT necessary.
Sub printhiddensheet()
Application.ScreenUpdating = False
With Sheets("sheet8")
.Visible = True
.PrintOut
.Visible = False
End With
Application.ScreenUpdating = True
End Sub
--
Don Guillett
SalesAid Software
"sungen99" wrote in
message ...
The below macro works just fine when the worksheet is not hidden. But
when it is the macro bombs out.
Sub Button11_Click()
Sheets("Print Ticket").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("Form").Select
Range("E9:F9").Select
End Sub
--
sungen99
------------------------------------------------------------------------
sungen99's Profile:
http://www.excelforum.com/member.php...fo&userid=9144
View this thread:
http://www.excelforum.com/showthread...hreadid=505722
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett