In some of the sheets of my workbook, whenever I type in a value into a cell and press Enter, the Undo button is greyed out. So I assume the Undo cache is being cleared because a macro is running. However, I cannot figure out what macro is running.
As a test, I went into the ThisWorkbook module and commented out all code within the Workbook_SheetSelectionChange sub.
In the module for the sheet, I went into the sub for Worksheet_SelectionChange and commented out all the code in it.
The issue still occurs. I can't think of any other subs that might be running when I type a value into a cell. Yet, the Undo button is greyed out after I do.
Is there any way to create a listing in the Watch window where I can watch the Undo cache? I could set that to break when the value changes, so maybe I could see the line of code that is causing the change. But I don't know what exactly I would put in the Watch window to watch the Undo cache.
As a test, I went into the ThisWorkbook module and commented out all code within the Workbook_SheetSelectionChange sub.
In the module for the sheet, I went into the sub for Worksheet_SelectionChange and commented out all the code in it.
The issue still occurs. I can't think of any other subs that might be running when I type a value into a cell. Yet, the Undo button is greyed out after I do.
Is there any way to create a listing in the Watch window where I can watch the Undo cache? I could set that to break when the value changes, so maybe I could see the line of code that is causing the change. But I don't know what exactly I would put in the Watch window to watch the Undo cache.