Need Help with Key Plan script

Trying to get my sheets to first turn off all key plans then turn on key plan area depending on what letter the sheet ends with. I got the first half figured out, but now I’m stuck. I think the next step is to separate the sheets by the letter they end in but I cant figure it out. First time writing a script.

Hi @mahmadPWH7D Welcome to the community
Here’s a rough example that may be of use, blue groups will need to be modified based on your use case.

GenericExample.dyn (44.2 KB)


Cheers KS