Forum Discussion

m_tarler's avatar
m_tarler
Bronze Contributor
Jan 07, 2026
Solved

Disappearing Script Button

In the online version of excel, I have a script button keeps disappearing.  This same button is fine on desktop and I don't believe this was a problem before.  When I load the page it isn't there.  I...
  • NikolinoDE's avatar
    Jan 07, 2026

    This is a real Excel for the Web rendering bug, and your observations are actually very diagnostic. You’ve already narrowed it down better than most people do.

    Below is a clear breakdown and what you can realistically do about it.

     

    This is a known (but inconsistently documented) Excel for the Web UI bug involving Office Scripts buttons not rendering on initial sheet load.

    Your “dummy button” workaround works because it forces the Scripts pane and button-rendering engine to initialize.

     

    Why?...

    Excel for the Web handles Script Buttons very differently from:

    • Shapes
    • Form controls
    • Desktop VBA buttons

    Internally:

    • Script buttons are rendered by a separate React-based UI layer
    • That layer is lazy-loaded
    • On some workbooks/sheets, it fails to initialize on first load

    When you:

    • Switch to another sheet that already has a script button
    • Excel initializes the Scripts UI
    • When you return → the missing button finally renders

    Refreshing the browser resets the UI state, so the bug returns.

    This is why:

    • Desktop Excel works fine
    • Dummy button “fixes” it
    • Zooming, scrolling, resizing does nothing
    • Switching to a sheet without a script button does nothing

     

    Why one button disappears but the dummy doesn’t

    This usually happens when one or more of the following are true:

    The disappearing button is on a sheet that is:

    • First sheet opened by default
    • Hidden → then unhidden
    • Loaded via a direct link to that sheet

    Excel Web sometimes fails to initialize scripts on the initial active sheet.

     

    The button is:

    • Positioned partially off-grid
    • Anchored to merged cells
    • Anchored to filtered rows
    • On a protected sheet (even loosely protected)

    Excel Web has layout race conditions during load.

     

    Workbook was:

    • Originally created in Desktop Excel
    • Heavily modified with VBA
    • Saved multiple times before scripts were added

    This causes stale layout metadata that Web Excel misreads.

     

    Why Microsoft hasn’t “fixed” it yet

    Because:

    • Office Scripts is still evolving
    • This bug is intermittent
    • It’s considered “non-blocking” internally
    • The workaround (sheet switching) technically exists

    So it keeps slipping through release cycles.

     

    Workaround…

    Keep your dummy script button on a helper sheet.

    You accidentally found the most reliable fix.

    If you want to clean it up:

    • Rename sheet to _Init or _Scripts
    • Hide the sheet
    • Leave one script button there forever

    Hidden sheets still initialize scripts.

     

     

    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