I want to search for the word Total Points-Check. It has to search column A only. The word will appear numerous times by itself in a cell but I only want the first instance of it to be replaced with the word GUN. Possible??
I want to search for the word Total Points-Check. It has to search column A only. The word will appear numerous times by itself in a cell but I only want the first instance of it to be replaced with the word GUN. Possible??
Any ideas? Google isnt helping me either![]()
Maybe:
![]()
Sub ScabbyDogA() Range("A1").Select On Error GoTo e Do Until ActiveCell.Value = "Total Points-Check" ActiveCell.Offset(1).Select Loop ActiveCell.Value = "Gun" e: End Sub
Try this...
In a column next to it, use this, copied down...
=SUBSTITUTE(A1,"text-to-remove","text-to-replace",1)
If you want, you can then copy/paste values to remove the formulas
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks