lbrockmeier
New Member
- Joined
- Dec 18, 2017
- Messages
- 7
All of a sudden the 2nd part of this coede (where I Paste Special the last part) stopped working! The error i'm getting is "Run-time error '1004': PasteSpecial method of Range class failed
Any suggestions?
Any suggestions?
Rich (BB code):
Sub Copy_Transpose_Paste_Prices()
'
' Copy & Paste Categories
'
Dim Last_Row5 As Long
Last_Row5 = Worksheets("VGBB GO&GS Combined - Subclass").Range("A" & Rows.Count).End(xlUp).Row ' Determine the lastrow of the data to copy
Worksheets("VGBB GO&GS Combined - Subclass").Range("A3:A3" & Last_Row5).Copy 'Copies A3 to end of the column
Worksheets("VGBB Analysis").Range("B4").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
' Copy & Paste Prices
Dim Last_Row6 As Long
Last_Row6 = Worksheets("VGBB GO&GS Combined - Subclass").Range("E" & Rows.Count).End(xlUp).Row ' Determine the lastrow of the data to copy
Worksheets("VGBB GO&GS Combined - Subclass").Range("E3:P3" & Last_Row5).Copy 'Copies A3 to end of the column
Worksheets("VGBB Analysis").Range("B6").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
End Sub
Last edited by a moderator: