Utterly Bamboozled
New Member
- Joined
- Jul 7, 2010
- Messages
- 39
Could someone please tell me why this code keeps crashing Excel??
'
Sheets("Timesheet").Select
Sheets("Timesheet").Copy Before:=Sheets(5)
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Timesheet (2)").Select
Sheets("Timesheet (2)").Name = Range("C6").Value
Range("C6:E6").Select
Application.CutCopyMode = False
End Sub
Thanks!
'
Sheets("Timesheet").Select
Sheets("Timesheet").Copy Before:=Sheets(5)
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Timesheet (2)").Select
Sheets("Timesheet (2)").Name = Range("C6").Value
Range("C6:E6").Select
Application.CutCopyMode = False
End Sub
Thanks!