Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Undo Command Button Actions

If I copy and paste cells within any given spreadsheet i can undo it by using
the undo button. But if I assign the same copy/paste routine to a command
button I don't get the chance to use the undo function.

How do I fix this? I have a series of command buttons that perform a wide
range of common tasks and procedures but I don't get the chance to undo them
if i click the wrong button by accident.

Ummm.... Help? Maybe?

Thanks in advance,
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Undo Command Button Actions

What you experience is also true for VBA code. You need to create an Undo
Handler - but be warned this is not a trivial application.

To get some insight have a look here.....

http://www.jkp-ads.com/Articles/UndoWithVBA01.asp


--
Cheers
Nigel



"Rob" wrote in message
...
If I copy and paste cells within any given spreadsheet i can undo it by
using
the undo button. But if I assign the same copy/paste routine to a command
button I don't get the chance to use the undo function.

How do I fix this? I have a series of command buttons that perform a wide
range of common tasks and procedures but I don't get the chance to undo
them
if i click the wrong button by accident.

Ummm.... Help? Maybe?

Thanks in advance,
Rob



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
Where is the undo command in Excel 2007? kedawy Excel Discussion (Misc queries) 3 April 9th 09 04:46 PM
Undo multiple actions Rachel Excel Discussion (Misc queries) 1 December 11th 06 08:35 PM
VB's Command Button vs Form's Command Button Ronald Dodge Excel Programming 3 May 24th 06 02:23 PM
Mimic Undo actions Chris W. Excel Programming 2 March 21st 05 03:00 PM


All times are GMT +1. The time now is 05:51 AM.

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

About Us

"It's about Microsoft Excel"