use macro and allow undo

B

ben

Hello.

I have a macro that I recorded which works great. It does a copy and special
paste to another work sheet. The only problem is that after it has run, if I
made some kind of mistake and it copied the wrong stuff (or whatever), I
cannot click on undo or alt-backspace. Is there anyway that the copy and
paste of the macro can be undone this way?

Thanks,
Ben
 
L

Lars-Åke Aspelin

Hello.

I have a macro that I recorded which works great. It does a copy and special
paste to another work sheet. The only problem is that after it has run, if I
made some kind of mistake and it copied the wrong stuff (or whatever), I
cannot click on undo or alt-backspace. Is there anyway that the copy and
paste of the macro can be undone this way?

Thanks,
Ben


You have to build that into the macro itself.
The macro must save, "somewhere", all data that will be modified by
the macro.
And then you must have another "undo" macro that restores data from
"somewhere".

/ Lars-Åke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top