#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Undo button

Thanks Harald. Your code is just what I wanted as there would only be
one undo required..

Harald Staff wrote:

Hi Orf

Pretty simple -but also pretty limited:

Sub RegretAction()
Application.Undo
End Sub

Note that Undo must be the very first command in a macro like this to work,
and that it's a strict "last action only" undo without the history. So
consider putting the built-in Undo button onto a new custom toolbar instead
and keep that one visible.

HTH. Best wishes Harald

"Orf Bartrop" skrev i melding
...


I want to create an Undo button in a workbook. I know how to create the
button but not the code to go with it. How is this done.
The reason for the button is that all toolbars will be hidden in the
final product.

Orf Bartrop









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo button and redo button quit stillkicking Excel Discussion (Misc queries) 7 November 14th 09 04:40 PM
Undo Button dhstein Excel Discussion (Misc queries) 1 October 17th 09 03:35 PM
Undo delete button action lwj Excel Worksheet Functions 0 June 15th 07 03:33 PM
Why Undo and Redo button are disabled in my Pivot Shailesh Excel Discussion (Misc queries) 0 April 25th 07 01:11 PM
Undo Button Click change Kiran Excel Discussion (Misc queries) 2 July 12th 05 07:59 PM


All times are GMT +1. The time now is 03:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"