Hi Ron De Bruin,
I have used your Macros in Excel 2007 to supress printing of certain Rows
Private Sub Workbook_BeforePrint(Cancel As Boolean)
' Hide Row 1 to Row 5 when printing
If ActiveSheet.Name = "Adjustment" Then
Cancel = True
Application.EnableEvents = False
Application.ScreenUpdating = False
With ActiveSheet
.Rows("1:5").EntireRow.Hidden = True
.PrintOut
.Rows("1:5").EntireRow.Hidden = False
End With
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
End Sub
However, after I clicked "Print Preview", all toolbar icons are disable for
selection.
When I take out the above Macro, selection becomes available.
Could you show me how to fix it.
Thanks.
Igbert Au-Yeung