velocity1234
New Member
- Joined
- May 5, 2014
- Messages
- 25
I have several sheets in a work book. I want to copy and paste a range of cells in a different sheet even if I am not on that sheet. For example lets say I am on sheet 1 when the macro fires off. I don't want to jump to the worksheet "weeklypricedata" but remain on sheet 1. This is what I have and excel gets hung up on the red text.
Sub PasteGraphData()
'
Application.ScreenUpdating = False
Worksheets("WeeklyPriceData").Range("GraphData").Select
Selection.Copy
Range("C" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Where am I going wrong? Any help would be greatly appreciated.
Thanks,
Sub PasteGraphData()
'
Application.ScreenUpdating = False
Worksheets("WeeklyPriceData").Range("GraphData").Select
Selection.Copy
Range("C" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Where am I going wrong? Any help would be greatly appreciated.
Thanks,