I am creating a workbook with a large table. I would like the user be able to select certain rows and move them to another table for better comparison. Here is what I want to happen:
1. The user shall be able to specify and select a row from the table in Sheet 1. I have done this so far by the user clicking on the first cell of the row, and the system selects the entire row. I am open to other more user-friendly methods of selecting the row, like radio buttons or check boxes to the left of each row in the table.
2. The system shall copy that row and paste it into the last row of a table in Sheet 2.
The VBA code I have thus far gives me the error "Run-time error '-2147417848 (80010108)': Method 'Select' of object 'Range' failed. The code is below:
Sub Populate()
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveCell.Select
Range(Selection, Selection.End(xlToRight)).Select
Sheets("new").Range("A1").Select
ActiveSheet.Paste
End Sub
Any help would be greatly appreciated! Thanks in advance
1. The user shall be able to specify and select a row from the table in Sheet 1. I have done this so far by the user clicking on the first cell of the row, and the system selects the entire row. I am open to other more user-friendly methods of selecting the row, like radio buttons or check boxes to the left of each row in the table.
2. The system shall copy that row and paste it into the last row of a table in Sheet 2.
The VBA code I have thus far gives me the error "Run-time error '-2147417848 (80010108)': Method 'Select' of object 'Range' failed. The code is below:
Sub Populate()
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveCell.Select
Range(Selection, Selection.End(xlToRight)).Select
Sheets("new").Range("A1").Select
ActiveSheet.Paste
End Sub
Any help would be greatly appreciated! Thanks in advance