Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default how do i release memory

Hello,

i have an error message: cannot empty clipboard. The Office Clipboard
shows that the clipboard is empty. This situation persists even after
shutting Excel

i ran out of memory after running program that does many ( approx 100)
open workbook/(copy/paste)/close workbook operations. The memory usage
builds up all the time, although only one workbook is open at a time. is
there something i should be doing to release memory when the workbook is
closed?

thanks for any suggestions
k
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default how do i release memory

Try setting all the references that open the workbook object to nothing at
the end of the subroutine, i.e.,

set oWB = workbooks.add
....
code...
....
set oWB = nothing

http://HelpExcel.com



"kurb" wrote:

Hello,

i have an error message: cannot empty clipboard. The Office Clipboard
shows that the clipboard is empty. This situation persists even after
shutting Excel

i ran out of memory after running program that does many ( approx 100)
open workbook/(copy/paste)/close workbook operations. The memory usage
builds up all the time, although only one workbook is open at a time. is
there something i should be doing to release memory when the workbook is
closed?

thanks for any suggestions
k

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
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Is this release buggy? Matt Morgan Excel Discussion (Misc queries) 1 December 19th 06 03:44 PM
Release Memory Jeff Excel Discussion (Misc queries) 1 September 25th 06 09:28 PM
Type Statements and Memory Release Neil Miller[_4_] Excel Programming 5 November 3rd 04 02:12 AM
Release files from memory?? Ron[_21_] Excel Programming 3 March 5th 04 12:49 PM


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