ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
Hello to All
With this code in sheet1 I select a cell , fill it in yellow, copy the entire row and past it in the first empty row in sheet2
What I need is if I choose to undo a "transfer" by doing this:
In sheet1 I click a "yellowed cell"
Cell turns to "no fill"
find matched cell in sheet2
When found does an EntireRow.delete .
Returns to sheet1
Thank you
With this code in sheet1 I select a cell , fill it in yellow, copy the entire row and past it in the first empty row in sheet2
Code:
Sub tranferdata()
With Selection.Interior
.ColorIndex = 6
With Selection.EntireRow.Copy
Sheets("Sheet2").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste
Sheets("Sheet1").Select
End With
End With
End Sub
What I need is if I choose to undo a "transfer" by doing this:
In sheet1 I click a "yellowed cell"
Cell turns to "no fill"
find matched cell in sheet2
When found does an EntireRow.delete .
Returns to sheet1
Thank you