Posted - 04/19/2022 : 08:10:20 AM %H does not contain the sheet name which is accessible via page.active$ variable - I have mentioned it in the previous answer:
if (CompareNoCase(page.active$, "wks2")==0) {...}
Can you post the text of the error message as well?