![]() |
#1
|
|||
|
|||
![]()
Hi all,
I am no whiz at excel and the code here, I used from another program. Can some please add the code to this string or tell me how to do it, Please. I have a workbook with 4 sheets - 2 are hidden. The following code I am using works with the hidden sheet. The problem is when I protect the sheets and workbook I get an error when I try to print the protected sheet or workbook. Can you suggest a workaround? Also I would like to view before print if that is possible... TIA GT ---------------------------------------------------------------- Sub PrintSpecificSheet() Dim wks As Worksheet Set wks = ActiveWorkbook.Sheets("Printout") If wks.Visible <> xlSheetVisible Then Application.ScreenUpdating = False wks.Visible = xlSheetVisible wks.PrintOut wks.Visible = xlSheetHidden Application.ScreenUpdating = True Else wks.PrintOut End If Set wks = Nothing End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
One veryhidden sheet, one hidden sheet and two visible sheets - how to saveas into .xlsm workbook | kiwimtnbkr | Excel Programming | 4 | 06-26-2019 11:30 AM |
![]() |
terrymac | Excel Programming | 2 | 12-01-2015 05:29 PM |
![]() |
nfotx | Excel | 2 | 12-27-2014 10:21 PM |
Print Multiple Sheets Double-Sided | flambe99 | Excel | 1 | 03-12-2010 01:15 PM |
Print with hidden cols? | markg2 | Excel | 2 | 01-06-2010 06:04 PM |