Transferring data autonomously to another sheet with certain text
Solved/Closed
achettri
Posts
1
Registration date
Wednesday 11 December 2019
Status
Member
Last seen
11 December 2019
-
11 Dec 2019 à 11:56
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 17 Dec 2019 à 12:00
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 17 Dec 2019 à 12:00
Related:
- Transferring data autonomously to another sheet with certain text
- How to copy data from one excel sheet to another - Guide
- Excel move data from one sheet to another - Guide
- How to copy data to multiple worksheets in Excel - Guide
- App for transferring money internationally - Guide
- Excel hyperlink to another sheet - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
17 Dec 2019 à 12:00
17 Dec 2019 à 12:00
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
Bryx
Posts
223
Registration date
Friday 6 December 2019
Status
Member
Last seen
28 April 2025
4
13 Dec 2019 à 02:21
13 Dec 2019 à 02:21
Hi!
Do you have a very good knowledge of VBA? The programming language on Excel or content validation?
Cheers
Do you have a very good knowledge of VBA? The programming language on Excel or content validation?
Cheers