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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,226,693
Messages
6,192,471
Members
453,726
Latest member
JoeH57

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