Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zhu Zhu is offline
external usenet poster
 
Posts: 5
Default how to undo changes made by micro

Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes are
made in excel spread sheet by hand?

Thanks!



  #2   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default how to undo changes made by micro

Hi Zhu -
Check out this URL; it'll solve your problem or get you on the right track.
http://j-walk.com/ss/excel/tips/tip23.htm

-----
Jay


"Zhu" wrote:

Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes are
made in excel spread sheet by hand?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to undo changes made by micro

No built in support for it - you have to do the work. Here is one approach:

http://j-walk.com/ss/excel/tips/tip23.htm
John Walkenbach's site.
--
Regards,
Tom Ogilvy


"Zhu" wrote in message
...
Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes
are
made in excel spread sheet by hand?

Thanks!





  #4   Report Post  
Posted to microsoft.public.excel.programming
Zhu Zhu is offline
external usenet poster
 
Posts: 5
Default how to undo changes made by micro

Thanks!


"Tom Ogilvy" wrote:

No built in support for it - you have to do the work. Here is one approach:

http://j-walk.com/ss/excel/tips/tip23.htm
John Walkenbach's site.
--
Regards,
Tom Ogilvy


"Zhu" wrote in message
...
Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes
are
made in excel spread sheet by hand?

Thanks!






  #5   Report Post  
Posted to microsoft.public.excel.programming
Zhu Zhu is offline
external usenet poster
 
Posts: 5
Default how to undo changes made by micro

Thank you, Tom.

In the link you provided, the approach actually undo one backward step
only. After one undo, the undo button becomes disable, and there is no way to
undo backward further with the undo button.

On the other post, the procedure sounds also can only undo one step back:
http://groups.google.com/group/micro...b6edcdc 3a25b

"Tom Ogilvy" wrote:

No built in support for it - you have to do the work. Here is one approach:

http://j-walk.com/ss/excel/tips/tip23.htm
John Walkenbach's site.
--
Regards,
Tom Ogilvy


"Zhu" wrote in message
...
Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes
are
made in excel spread sheet by hand?

Thanks!








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to undo changes made by micro

I don't have a canned solution for you. You get the point, however, that
you have to store the changes and write code to undo them. If you only set
up your code to do one level of undo, then you are restricted to one level.
If you write your code to handle more than one level, then you have more
than one level. The link shows you the basics. The link you posted shows
another implementation, but it is also storing the situation before the
change.

If you want to integrate the undo with the built in undo, so you can run a
macro, make manual changes, run a macro, make manual changes, then unless
you implement that all in your own code, you are correct that it won't work.

--
Regards,
Tom Ogilvy

"Zhu" wrote in message
...
Thank you, Tom.

In the link you provided, the approach actually undo one backward step
only. After one undo, the undo button becomes disable, and there is no way
to
undo backward further with the undo button.

On the other post, the procedure sounds also can only undo one step back:
http://groups.google.com/group/micro...b6edcdc 3a25b

"Tom Ogilvy" wrote:

No built in support for it - you have to do the work. Here is one
approach:

http://j-walk.com/ss/excel/tips/tip23.htm
John Walkenbach's site.
--
Regards,
Tom Ogilvy


"Zhu" wrote in message
...
Hello!

After we change cell values with our micro procedures, we can not use
the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes
are
made in excel spread sheet by hand?

Thanks!








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to undo changes made by micro

Dear Zhu,

i´m sorry: after the VBA-Program has run, it is game over. Further all
previous actions in the "Undo"-list are extinguished.

It is possible to define other macros within your program to be listed as
"Undo"-Actions. (Therefor they have to be defined at the very end of the
program by Application.OnUndo "Undo : change all values" ,"MacroXX").

Best regards, Kai


"Zhu" schrieb im Newsbeitrag
...
Hello!

After we change cell values with our micro procedures, we can not use the
undo button to resume previous values.
How can we undo changes made by our micro procedures, as if the changes
are
made in excel spread sheet by hand?

Thanks!





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
Can I undo changes I made days ago in my Excel spreadsheet? hotslap Excel Worksheet Functions 1 August 25th 06 02:01 AM
Micro roheel Excel Programming 0 April 26th 05 09:43 AM
Micro djmimi Excel Worksheet Functions 0 February 9th 05 05:29 PM
Why is my undo function in Excel only can undo the last 1 or 2 ch. 1111111111111111111111111111111111111111 Excel Worksheet Functions 1 November 24th 04 11:13 AM
How to undo changes made to Excel sheet programatically sameerce[_17_] Excel Programming 1 June 3rd 04 07:01 AM


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