Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Method 'Paste' of object '_Worksheet' failed
I keep getting a method paste of object _Worksheet failed error on my ActiveSheet.Paste command in the code below: Public Sub CopyRows() Sheets("Sheet2").Select ' Find the last row of data FinalRow = Range("A65536").End(xlUp).Row ' Loop through each row For x = 34 To FinalRow ' Decide if to copy based on column A ThisValue = Range("A" & x).Value If ThisValue 0 Then Range("A" & x & ",B" & x).Copy Sheets("Sheet3").Select NextRow = Range("B65536").End(xlUp).Row + 1 Range("B" & NextRow).Select ActiveSheet.Paste Sheets("Sheet2").Select End If Next x End Sub Can anyone help? -- markline ------------------------------------------------------------------------ markline's Profile: http://www.excelforum.com/member.php...o&userid=23681 View this thread: http://www.excelforum.com/showthread...hreadid=374455 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Can't Copy and Paste between Excel 2003 Workbooks | Excel Discussion (Misc queries) | |||
VBA: Where to find Excel Object model? | Excel Discussion (Misc queries) | |||
excel - numbers as text | New Users to Excel |