Forum Discussion

Andy8's avatar
Andy8
Copper Contributor
Sep 15, 2025
Solved

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...
  • NikolinoDE's avatar
    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.

Resources