Transferring data autonomously to another sheet with certain text
Solved/Closed
                    
        
                    achettri
    
        
                    Posts
            
                
            1
                
                            Registration date
            Wednesday December 11, 2019
                            Status
            Member
                            Last seen
            December 11, 2019
            
                -
                            Dec 11, 2019 at 11:56 AM
                        
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Dec 17, 2019 at 12:00 PM
        TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Dec 17, 2019 at 12:00 PM
        Related:         
- Transferring data autonomously to another sheet with certain text
 - How to copy data from one excel sheet to another - Guide
 - Google sheet right to left - Guide
 - Excel move data from one sheet to another - Guide
 - Windows network commands cheat sheet - Guide
 - Tmobile data check - Guide
 
2 responses
                
        
                    TrowaD
    
        
                    Posts
            
                
            2921
                
                            Registration date
            Sunday September 12, 2010
                            Status
            Contributor
                            Last seen
            December 27, 2022
            
            
                    555
    
    
                    
Updated on Dec 17, 2019 at 12:01 PM
    Updated on Dec 17, 2019 at 12:01 PM
                        
                    Hi Achettri,
Give the following code a try:
To implement the code, right-click the "Test Project" sheets tab and select "View code". Paste the code in the big white field.
The code will run automatically when entering data in column F.
Note: By default the code is case sensitive. When you want to also copy rows containing "pending" and "candidates" in column F, then start the code with this:
Best regards,
Trowa
 
                
                
            Give the following code a try:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("F")) Is Nothing Then Exit Sub
If InStr(Target.Value, "Pending") > 0 Or InStr(Target.Value, "Candidates") > 0 Then
    Target.EntireRow.Copy Sheets("Pending Test").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
End Sub
To implement the code, right-click the "Test Project" sheets tab and select "View code". Paste the code in the big white field.
The code will run automatically when entering data in column F.
Note: By default the code is case sensitive. When you want to also copy rows containing "pending" and "candidates" in column F, then start the code with this:
Option Compare Text
Best regards,
Trowa