Find() function to find the start location of the first instance, if you want to replace the first 1 to appear in your text with "ABC". Then replace function to replace it with "ABC" Your code might well be replace(ri!yourText, find("1", ri!yourText)…