Running macro clears undo options

Curtiosity

New Member
Joined
Aug 6, 2009
Messages
1
I created a macro in my personal.xlsb in Excel 2007 to paste values and assigned it to the keystroke ctrl-q.

When I use this macro, it clears out my options to undo any actions, which is something I really need sometimes.

Is there a different way I could make a macro to paste values with a keystroke combination so that it won't have this effect on the undo feature?

Thanks,

Wendy
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Yes, it can be done..but you have to write code to handle it...the Excel built in undo cannot undo the actions of VBA code.
 
Upvote 0
One method I've used in the past is to make the macro save the file first, so you have a recoverable position, but this might be too slow for some applications.
 
Upvote 0

Forum statistics

Threads
1,223,967
Messages
6,175,673
Members
452,666
Latest member
AllexDee

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