Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Undo button and redo button quit | Excel Discussion (Misc queries) | |||
Undo Button | Excel Discussion (Misc queries) | |||
Undo delete button action | Excel Worksheet Functions | |||
Why Undo and Redo button are disabled in my Pivot | Excel Discussion (Misc queries) | |||
Undo Button Click change | Excel Discussion (Misc queries) |