Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Stop macro from saving changes

So if you reopen the file then the changes are gone? then it definately
HASN'T saved has it??

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Stop macro from saving changes

It hasn't saved it. That's for sure. May be it disables the undo button
or just doesn't keep log of changes. But what I observed is that it
also doesn't allow to undo the changes I did before running the macro.
I.e if I have done some changes, they are available to undo before
running macro. As soon as I run it, they are lost. The undo button is
disabled and even Ctrl + Z for that matter doesn't do anything.

If I reopen, it will open in the last saved state.

Regards,
Manoj

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Stop macro from saving changes

Most macro commands will cause the undo history to be lost. Undo doesn't
support changes made by macros. Thus, when a macro changes the spreadsheet
environment, the context of the undo has been lost and therefore Undo gets
disabled is my surmise.

--
Regards,
Tom Ogilvy

wrote in message
ups.com...
It hasn't saved it. That's for sure. May be it disables the undo button
or just doesn't keep log of changes. But what I observed is that it
also doesn't allow to undo the changes I did before running the macro.
I.e if I have done some changes, they are available to undo before
running macro. As soon as I run it, they are lost. The undo button is
disabled and even Ctrl + Z for that matter doesn't do anything.

If I reopen, it will open in the last saved state.

Regards,
Manoj



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Stop macro from saving changes

So can't we save this undo history (or whatever) and restore back while
ending macro?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Stop macro from saving changes

Yes, but you have to do the dirty work yourself.

The link that Rowan gave you in the first reply showed one way of doing this.

wrote:

So can't we save this undo history (or whatever) and restore back while
ending macro?


--

Dave Peterson
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
How do I stop someone saving a web downloaded workbook? Jojo999 Excel Discussion (Misc queries) 2 May 26th 09 02:01 PM
My hyperlinks stop working on saving the workbook RobDLondon Excel Discussion (Misc queries) 2 September 11th 06 02:46 PM
How do I stop Excel from saving a file with a different name? Gary Excel Discussion (Misc queries) 5 September 14th 05 07:20 PM
how do I stop warnings when saving .xls as csv? leeandhazel Excel Discussion (Misc queries) 1 December 13th 04 12:11 PM
Stop Saving majikman[_20_] Excel Programming 2 May 14th 04 09:42 PM


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