Undo still available after a Worksheet_Change event???

ac3100

Board Regular
Joined
Aug 21, 2002
Messages
185
I am using a Worksheet_Change event in my "Calendar" worksheet when a user changes the value within a cell.

That value goes to another worksheet:

Worksheets("Daily Weekly Tasks").Cells(zz + 3, 7) = Worksheets("Calendar").Cells(22 + (xx * 9), 4 + (yy * 4))

I was amazed to see that the undo button was active.
It said undo typing "1156" in c47.

I pressed it to perform the undo and I got a 1004 error.

1. I thought undo would not be active since a macro was already performed.

2. Why is the error happening. The code works fine under normal circumstances.

Thanks

Andy
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top