Selecting Cell based on a criteria and copy selected row
Closed
Debs269
Posts
21
Registration date
Monday October 15, 2012
Status
Member
Last seen
August 18, 2016
-
Feb 18, 2014 at 04:37 AM
Debs269 Posts 21 Registration date Monday October 15, 2012 Status Member Last seen August 18, 2016 - Apr 1, 2014 at 04:21 AM
Debs269 Posts 21 Registration date Monday October 15, 2012 Status Member Last seen August 18, 2016 - Apr 1, 2014 at 04:21 AM
Related:
- Xlup
- To create a network bridge you must select at least two lan ✓ - Network Forum
- Clear only the formatting from the selected cell (leaving the content) - Guide
- Based on the cell values in cells b77 ✓ - Excel Forum
- How to take screenshot of selected area in excel - Guide
- Saints row 2 cheats - Guide
3 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Feb 18, 2014 at 11:07 AM
Feb 18, 2014 at 11:07 AM
Here you go Debs:
It's not the shortest structure but it will do the job.
Best regards,
Trowa
Monday, Tuesday and Thursday are usually the days I'll respond. Bear this in mind when awaiting a reply.
Sub RunMe()
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name <> "DataMaster" Then
Sheets(ws.Name).Select
For Each cell In Range("B12:B" & Cells(Rows.Count, "B").End(xlUp).Row)
If cell.Value = "Completed on System" Then
Range(Cells(cell.Row, "A"), Cells(cell.Row, "AC")).Copy
Sheets("DataMaster").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValuesAndNumberFormats
Sheets("DataMaster").Range("A" & Rows.Count).End(xlUp).PasteSpecial Paste:=xlPasteFormats
End If
Next cell
End If
Next ws
For Each ws In Worksheets
If ws.Name <> "DataMaster" Then
Sheets(ws.Name).Select
For Each cell In Range("B12:B" & Cells(Rows.Count, "B").End(xlUp).Row)
If cell.Value = "Completed on System" Then
Range(Cells(cell.Row, "A"), Cells(cell.Row, "AC")).Delete
End If
Next cell
End If
Next ws
End Sub
It's not the shortest structure but it will do the job.
Best regards,
Trowa
Monday, Tuesday and Thursday are usually the days I'll respond. Bear this in mind when awaiting a reply.