VBA help finding a word then copy cell above
Solved/Closed
Related:
- Excel vba find and copy cell values
- Number to words in excel formula without vba - Guide
- Vba case like - Guide
- Excel mod apk for pc - Download - Spreadsheets
- How to open vba in excel - Guide
- Excel marksheet - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Sep 14, 2010 at 09:29 AM
Sep 14, 2010 at 09:29 AM
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
Sep 17, 2010 at 07:00 PM