Your description says command button but the comment in the code says toggle button. The code looks like it would only work for a toggle button.
If it's a toggle button, it's probably an ActiveX control. A Windows update late last year inadvertently caused ActiveX controls to stop working. A fix for this is to search for and delete files named MSForms.exd. I have done this on three computers with no side effects. However, I do not know for sure that is your problem.
I am not familiar with running Excel under Office 365 so I don't know how that might come into play.
The best way to diagnose this is with your file. Can you attach it?
By the way this code can be streamlined. The variable Act is never used, so its declaration can be removed. You are setting a Boolean attribute that is directly dependent on a Boolean value, so that logic can be simplified. Such is the beauty of a toggle button.
Bookmarks