Hi
It is me again. I tried to revise my existing code and replace it with yours to see if this will help me achieve what I want.

However, I got an error when I run it.
Script Error: Expected Expression!
$=SetOption("Explicit","ON")
Is there any idea how to check this error.