Related:
- Conditional transfer of rows to another sheet
- Free fire transfer - Guide
- Google sheet right to left - Guide
- Ssh secure file transfer download - Download - Remote access
- Sprint transfer of liability - Guide
- Windows network commands cheat sheet - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Contributor
Last seen
December 27, 2022
555
Feb 1, 2011 at 10:28 AM
Feb 1, 2011 at 10:28 AM
Hi Ash,
Try this code:
Is this what you were looking for?
Best regards,
Trowa
Try this code:
Sub test()
Set mrNames = Sheets("Lead Input").Range("C2:C10")
Set mrStatus = Sheets("Lead Input").Range("F2:F10")
For Each cell In mrNames
If cell.Value = "00 Agent" Then
cell.EntireRow.Copy
Sheets("00 Agent").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
If cell.Value = "Personal Agent" Then
cell.EntireRow.Copy
Sheets("Personal Agent").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
If cell.Value = "Cyber Agent" Then
cell.EntireRow.Copy
Sheets("Cyber Agent").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
If cell.Value = "Special Agent" Then
cell.EntireRow.Copy
Sheets("Special Agent").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
If cell.Value = "Super Agent" Then
cell.EntireRow.Copy
Sheets("Super Agent").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
Next
For Each cell In mrStatus
If cell.Value = "Closed" Then
cell.EntireRow.Copy
Sheets("Closed Production").Range("C" & Rows.Count).End(xlUp).Offset(1, -2).PasteSpecial
End If
Next
Application.CutCopyMode = False
End Sub
Is this what you were looking for?
Best regards,
Trowa
Feb 21, 2013 at 03:37 PM
1) I only want to move PART of the row (specifically, "A:Q") to the other worksheet, not the entire row
2) Every time I run the macro, I want it to overwrite the information previously sent to that worksheet. Right now, I run the macro and get, say, 10 results sent to the other worksheet. When I run it again, I get the same 10 results all duplicated on that worksheet.
How can I modify the code above to fix these two issues