When you slider, I assume you are storing that string in Variable. Then why can't you go with Triggers using OnSheetActivate() from sheet level?
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful