Replace (search in loop)

Refer to the following example code to see how to search and replace cell content in a loop.