Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Hi @Kashif Bashir Bhatti , I believe the custom function is clearing the undo/redo stack, so there is nothing to be undone. This is why the button is grayed out/disabled. AFAIK, there is no workaround.