I
icystorm
Here are the conditions:
I have a printing macro in a workbook that works perfectly. When I
create a copy of the workbook (along with the macro) the macro in the
newly copied workbook no longer functions. Both workbooks reside in
the same directory. Any ideas about what may be causing this behavior?
For clarity, here is the macro (Tom Ogilvy assisted me with this
earlier in the week):
Sub print_schedule()
'
' print_schedule Macro
'
'
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Sheets("Schedule 1").Select
ActiveWorkbook.Names.Add Name:= _
"'Schedule 1'!Print_Area", _
RefersTo:="=" & worksheets("Admin").Range("F95").Value
Application.ActivePrinter = "\\Print01\ARPRN41 on Ne04:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("Personnel").Select
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
I have a printing macro in a workbook that works perfectly. When I
create a copy of the workbook (along with the macro) the macro in the
newly copied workbook no longer functions. Both workbooks reside in
the same directory. Any ideas about what may be causing this behavior?
For clarity, here is the macro (Tom Ogilvy assisted me with this
earlier in the week):
Sub print_schedule()
'
' print_schedule Macro
'
'
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Sheets("Schedule 1").Select
ActiveWorkbook.Names.Add Name:= _
"'Schedule 1'!Print_Area", _
RefersTo:="=" & worksheets("Admin").Range("F95").Value
Application.ActivePrinter = "\\Print01\ARPRN41 on Ne04:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("Personnel").Select
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub