LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP running out of memory when using macro

Hi all,
I have a macro which causes XP and and 2000 to produce this error
"Excel cannot complete this task with available resources. Choose less
data or close other applications". However it will run on 98.
The macro is quite large but nothing that is amazing. Unfortunately I
have inherited the workbook off someone and it contains numorous macros
that are all run in turn from one master macro (baisically a bit of a
mess and hard to tell whats going on).
The macro is below, it is baisically inserting zeros to allow sorting
on each sheet.
"Sheets("TEAM A").Select
ActiveWindow.ScrollRow = 984
Range("A1000").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "0"
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.filldown
ActiveWindow.ScrollRow = 1
Range("A1").Select
Sheets("DAY 1 TEAM B").Select
ActiveWindow.ScrollRow = 984
Range("A1000").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "0"
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.filldown
ActiveWindow.ScrollRow = 1
Range("A1").Select"
The macro is longer than this, it is baisically the same but repeats
another 20 times (with the sheet name changing each time). I haven't
posted the whole thing as it is very long but if I have to thats no
problem.
I am not runniong any other programs when running this macro and have
tried it on many machines.
Hope someone can help.

Many Thanks

J



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Copy/Paste - Running out of Memory Cheval New Users to Excel 1 October 12th 06 01:40 PM
Macro Error...OUT OF MEMORY G118 Excel Discussion (Misc queries) 1 October 15th 05 09:35 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM
Not enough Memory running macro Rich96 Excel Programming 2 September 19th 03 11:58 PM


All times are GMT +1. The time now is 04:20 PM.

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"