Forum Discussion
Andy8
Sep 15, 2025Copper Contributor
Toggle Button Code
Hi I have the below code in a toggle button which places an ‘X’ in the active cell which could be anywhere on the spreadsheet. Private Sub ToggleButton1_Click() If ActiveCell.Value = "X...
- Sep 15, 2025
Attached is a code example in the attached file.
It should work in Excel 2016 and Excel 365.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.
NikolinoDE
Sep 15, 2025Gold Contributor
Attached is a code example in the attached file.
It should work in Excel 2016 and Excel 365.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.
- Andy8Sep 16, 2025Copper Contributor
Hi Nikolino
Thats brilliant, exactly what I was needing!!
Sorry for the delay in replying - Microsoft had put a block on the file and it took me a while to work out how to clear it!
Thanks very much for your solution
Chers
Andy