Ben_Holmes
Board Regular
- Joined
- Mar 30, 2004
- Messages
- 147
Hi How can I work in a protect sheet and password it into the following code?
Sub QUOTE()
'
' QUOTE Macro
' Macro recorded 05/08/2011 by'
'' Turns off screenupdating (Makes screen transition more smooth)
Application.ScreenUpdating = False
Windows("Route.xls").Activate
Cells.Select
Selection.Copy
Workbooks.Add
Cells.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Rows("1:1").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
ActiveWindow.Zoom = 75
ActiveWindow.DisplayGridlines = False
Windows("Route.xls").Activate
ActiveSheet.Shapes("Picture 22").Select
Selection.Copy
Range("H2").Select
ActiveSheet.Paste
Range("C5").Select
' Turns screenupdating back on
Application.ScreenUpdating = True
End Sub
Kind Regards
Ben
Sub QUOTE()
'
' QUOTE Macro
' Macro recorded 05/08/2011 by'
'' Turns off screenupdating (Makes screen transition more smooth)
Application.ScreenUpdating = False
Windows("Route.xls").Activate
Cells.Select
Selection.Copy
Workbooks.Add
Cells.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Rows("1:1").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
ActiveWindow.Zoom = 75
ActiveWindow.DisplayGridlines = False
Windows("Route.xls").Activate
ActiveSheet.Shapes("Picture 22").Select
Selection.Copy
Range("H2").Select
ActiveSheet.Paste
Range("C5").Select
' Turns screenupdating back on
Application.ScreenUpdating = True
End Sub
Kind Regards
Ben
Last edited: