Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default out of memory errors

I have written a very large macro, that pulls data from access via sql
statements -- copies and pastes data to new workbook then creates and
refreshes a pivot table in the new workbook. The pasted data is appox. 26
col by 500 rows. When I try and refresh the pivot table, i get the continue
without undo prompt followed by the out of memory msg. I noticed that the
file size of the new workbook is 15mb and have no idea why it is this large.
Any ideas? can I clear the memory before the refresh?

Thanks in advance.

Dmoney

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default out of memory errors

You may be experiencing a memory leak.

http://www.google.com/search?hl=en&n...i=&safe=images

Cliff Edwards
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default out of memory errors

Is there a way to fix this? Clear the cache before restarting or something?
I haven't been able to find anything via Google.

Thanks.

"ward376" wrote:

You may be experiencing a memory leak.

http://www.google.com/search?hl=en&n...i=&safe=images

Cliff Edwards

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default out of memory errors

Do you have the file you're querying open when this happens?

Cliff Edwards

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default out of memory errors

I open an existing workbook paste some data in it and attempt to refresh 3
pivot tables. The first and second pivot tables refresh ok and on the third
refresh command, Excel runs out of memory. I have tried saving changes
opening and closing befor refresh programatically to no avail. If i close
excel out and manually open only the file that i want to refresh and refresh
it manually, it works fine. I agree it must be a memory leak -- just have
not been able to figure out how to plug it. --- do u know how to refresh the
pivots without opening the file??


"ward376" wrote:

Do you have the file you're querying open when this happens?

Cliff Edwards




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default out of memory errors

Make sure the file that is the source of your data is closed during
the refresh. If that doesn't help, post your code.

Cliff Edwards
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
Memory errors falcios Excel Discussion (Misc queries) 1 February 12th 07 11:34 AM
Useful Comment Concerning Memory Read/Write Errors Donna[_7_] Excel Programming 5 March 23rd 05 03:47 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
large sumproducts causing memory errors dave Excel Discussion (Misc queries) 0 March 2nd 05 09:06 PM
xls file size / memory errors Stuart Bazzard Excel Programming 2 April 26th 04 11:28 AM


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