Originally Posted by
erzengel
Thanks for the quick response.
Actually there are many rows in which "q" is present.
However i want to replace only those rows in which "q" is at the end,
Sorry I was mistaken to get what you mean in your OP.
The code loop to each cell with value in column F
and check if the last char of the current looped cell is "q",
if the last char is "q" then it replace the "q" with blank
if the last char is not "q" then it skip the replacement process.
But if you mean like this
q45derfqqqatq ---> q45derfqqqat
then don't use the code above, but this one :
The code above remove the last char if the last char is q.
Bookmarks