LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default How to avoid clearing undo stack after macro?

On Mon, 26 Apr 2004 14:51:58 GMT, Tushar Mehta wrote:

AFAIK, there is no simple way to protect the undo stack.


Yeah, I know. <g Didn't think it would be simple.

More
important, I don't know what it means to 'undo' something after the
execution of VBA code -- code that could have made the very idea of
undoing something meaningless. [As an example, suppose the last non-
VBA act was to bold cell A1. Subsequently, the VBA code deletes row 1.
What would it mean to undo the bolding of cell A1?]


Hmm... set the Bold property of A1 to False? That's an argument I
thought of before posting; stuff like that is probably why the undo
stack gets cleared in the first place

I imagine someone has devloped some complex set of gyrations that will
allow your VBA code to recreate the undo stack after its own actions
are complete, but it has always seemed too much work to figure out. ;-)


Would be nice if there was just an add-in or a DLL or something where
you just call a function that saves the stack (to a file or elsewhere in
memory) and another that restores it.
--
auric "underscore" "underscore" "at" hotmail "dot" com
*****
2 wrongs don't make a right - but 3 lefts do.
 
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
macro for clearing cells mocc Excel Discussion (Misc queries) 11 September 19th 09 10:43 PM
macro to stack/transpose select rows (cpm) sandy_eggo Excel Discussion (Misc queries) 0 January 20th 09 06:09 PM
Macro for clearing cell contents Sal Excel Discussion (Misc queries) 6 January 9th 09 11:40 PM
Macro error stack full Philip Wilson Excel Programming 1 February 13th 04 03:56 PM
macro clearing cell content Tyler[_2_] Excel Programming 2 November 19th 03 05:51 AM


All times are GMT +1. The time now is 04:18 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"