Step 1: I entered 11, 12, 13, and 14 in different cells.
Step 2: I applied red color to some cells.
Step 3: I applied yellow color to other cells.
Step 4: When performing undo (Ctrl + Z), the colors are removed correc…...Workbook object and 'worksheet' is your Worksheet object var cells...cells = worksheet.Cells; // Store the original values before applying...