chrono2483
Board Regular
- Joined
- Aug 23, 2014
- Messages
- 164
- Office Version
- 2016
Hello,
I am looking for help with a scrip. A play off of the following script if possible that would copy the cell, instead of delete the row:
Set SrchRng = ActiveSheet.Range("A1", ActiveSheet.Range("A5000").End(xlUp))
Do
Set myCell = SrchRng.Find("Agent", LookIn:=xlValues)
If Not myCell Is Nothing Then myCell.EntireRow.Delete
Loop While Not myCell Is Nothing
But instead of deleting the row, it would copy the cell, and paste elsewhere - and because its a loop, continue to find all the cells within that range with "Agent" and continue to paste elsewhere.
Can someone help with this?
I am looking for help with a scrip. A play off of the following script if possible that would copy the cell, instead of delete the row:
Set SrchRng = ActiveSheet.Range("A1", ActiveSheet.Range("A5000").End(xlUp))
Do
Set myCell = SrchRng.Find("Agent", LookIn:=xlValues)
If Not myCell Is Nothing Then myCell.EntireRow.Delete
Loop While Not myCell Is Nothing
But instead of deleting the row, it would copy the cell, and paste elsewhere - and because its a loop, continue to find all the cells within that range with "Agent" and continue to paste elsewhere.
Can someone help with this?