jnbrewer69
New Member
- Joined
- Jun 12, 2007
- Messages
- 10
Hi,
I have got a macro that will print a range on active worksheet.
I need the code or a new macro to then loop this thru all work sheets in workbook
see code below
-----------------------------------------------------------------------
Sub printtotal()
'
' printtotal Macro
' Macro recorded 04/07/2007 by jbrewer
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ActiveSheet.Unprotect
Range("Z1:AL46").Select
Selection.PrintOut Copies:=1, Collate:=True
ActiveWindow.ScrollRow = 8
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 6
ActiveWindow.ScrollRow = 4
ActiveWindow.ScrollRow = 3
ActiveWindow.ScrollRow = 2
ActiveWindow.ScrollRow = 1
Range("A1").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub
------------------------------------------------
Thanks in advance
Johnny B
I have got a macro that will print a range on active worksheet.
I need the code or a new macro to then loop this thru all work sheets in workbook
see code below
-----------------------------------------------------------------------
Sub printtotal()
'
' printtotal Macro
' Macro recorded 04/07/2007 by jbrewer
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ActiveSheet.Unprotect
Range("Z1:AL46").Select
Selection.PrintOut Copies:=1, Collate:=True
ActiveWindow.ScrollRow = 8
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 6
ActiveWindow.ScrollRow = 4
ActiveWindow.ScrollRow = 3
ActiveWindow.ScrollRow = 2
ActiveWindow.ScrollRow = 1
Range("A1").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub
------------------------------------------------
Thanks in advance
Johnny B
Code: