Hi Guys!
I've been trying to find a solution since quite a while, but nothing seems to work. I'm sure you can fin a easy solution for this :
In the same Workbook, I have two sheets ; Sheet1 and Sheet2. Both of them contains similar tables, Table1 in Sheet1, Table2 in Sheet2.
Table1 is the main table in which I input data and work on it. When I'm done, I mark Colum C with an "X". When I execute the command, I want to cut the data from Table1 into a new row into Table2.
All I can achieve at the moment is to delete the appropriate data from table1 using this code ;
However, I cannot find any way to cut and paste to a new row into table2.
Any idea?
I've been trying to find a solution since quite a while, but nothing seems to work. I'm sure you can fin a easy solution for this :
In the same Workbook, I have two sheets ; Sheet1 and Sheet2. Both of them contains similar tables, Table1 in Sheet1, Table2 in Sheet2.
Table1 is the main table in which I input data and work on it. When I'm done, I mark Colum C with an "X". When I execute the command, I want to cut the data from Table1 into a new row into Table2.
All I can achieve at the moment is to delete the appropriate data from table1 using this code ;
Excel Formula:
Sub Archive()
' Erase date from table one and archive them in another sheet
'' 1) Warning Message
MsgBox "This is going to erase data marked with ''X'' in Table1" & vbCrLf & " " & " " & vbCrLf & "Are you sure you want to do that?", vbOKCancel
'' 2) Search for trigger (which is "X")
Sheets("Sheet1").Select
lastRow = Cells(Rows.Count, "C").End(xlUp).Row
For I = lastRow To 1 Step -1
If (Cells(I, "C").Value) = "X" Then
'' 3) Delete rows marked X
Sheets("Sheet1").Cells(I, "C").EntireRow.Delete
End If
Next I
End Sub
However, I cannot find any way to cut and paste to a new row into table2.
Any idea?