Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA cannot use Undo/Redo button

Status
Not open for further replies.

inetquestion

Technical User
Dec 23, 2004
8
0
0
US
I have a VBA function that does a copy/paste. After its been invoked there is no option to undo those changes other than closing the doc and reopening it. Is there any way around this sort of thing so that you can actually use undo/redo on the toolbar?

TIA,

-Inet
 
Hi inetquestion,

What application? You mention a document - are you using Word? If so, the normal application Undo facility should be available for each action taken in the macro. If, on the other hand, you are using Excel, the built in Undo will not work on actions done via code and you will need to code your own logic which is probably more trouble than it's worth.

Is there something particular you are trying to achieve? Or is it just a general question?

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top