VBA help finding a word then copy cell above
Solved/Closed
Related:
- Excel vba find and copy cell values
- Excel vba find - Guide
- How to open vba in excel - Guide
- Excel mod apk for pc - Download - Spreadsheets
- How to copy data from one excel sheet to another - Guide
- Unlock excel vba and excel macros - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
14 Sep 2010 à 09:29
14 Sep 2010 à 09:29
Hi Irene,
Try this code:
Let me know how this works for you.
Best regards,
Trowa
Try this code:
Sub test()
Set MyRng = Range(Cells(1, "A"), Cells(Rows.Count, "A").End(xlUp))
For Each cell In MyRng
If cell.Value = "vto" Then
cell.Value = cell.Offset(-1, 0).Value
End If
Next
End Sub
Let me know how this works for you.
Best regards,
Trowa
17 Sep 2010 à 19:00