Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UNDO in EXCEL97 macro

I have an EXCEL97 macro that is doing lots of changes to a
worksheet. The Macro eventually fails with "Not enough
memory" and I think it may be storing UNDO info as it
goes. Is there a way to turn UNDO off programatically in
the macro ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default UNDO in EXCEL97 macro

Hi David,

It's not going to be an undo buffer :-(

Sadly "Not enough memory" is a catch-all error - it's displayed when an
"unanticipated" error is encountered.

These are nasty errors to track down. The normal approach is to start
taking out lines of code until it starts working, and in that way isolate
what's going wrong. Obviously you don't literally remove them, commenting
lines out is the normal way.

HTH

Peter Beach


"david" wrote in message
...
I have an EXCEL97 macro that is doing lots of changes to a
worksheet. The Macro eventually fails with "Not enough
memory" and I think it may be storing UNDO info as it
goes. Is there a way to turn UNDO off programatically in
the macro ?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default UNDO in EXCEL97 macro

I suspect that your code may not be releasing memory
correctly. the "undo" buffer is not used by the app when
code is run.

Without seeing the code, it snot possibl;e to comment
further.

Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
I have an EXCEL97 macro that is doing lots of changes to

a
worksheet. The Macro eventually fails with "Not enough
memory" and I think it may be storing UNDO info as it
goes. Is there a way to turn UNDO off programatically in
the macro ?
.

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
use macro and allow undo ben New Users to Excel 3 November 30th 08 10:11 AM
Undo a Macro Elise148 Excel Discussion (Misc queries) 1 June 14th 07 04:57 PM
Undo Macro Danny Excel Programming 1 June 28th 04 04:43 PM
why doesn't excel97 winNT vba macro code work in excel2002 winXP??? m a Excel Programming 4 June 23rd 04 06:20 PM
excel97: filtering out the zeros macro Joe[_21_] Excel Programming 2 June 16th 04 02:35 PM


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