I have added a toggle button in the ribbon of my spreadsheet. The button works fine. But my issue is that if I press it and save the file and reopen it, it is not pressed.

I was using so it indicates to the user that a certain option is running. And if it is not pressed after reopening users will repress and change the values in certain cells again.

Regards,
Mahmoud