Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Memory Issues

John

Following should eliminate the use of Word
to copy the bitmap.


Also notice application.cutcopymode=false
doesn't clear pictures from the "infamous"
Office Clipboard.

i've included a usefull proc that does it..
but it'll work for office2000 only!

if i'll find a working method to clear the
officeXP clipboard i'll let you know.


Sub copyBmp()
Range("a1:d10").CopyPicture xlScreen, xlBitmap
End Sub

Sub copyEMF()
Range("a1:d10").CopyPicture xlScreen, xlPicture
End Sub

Sub ClearClip()
On Error Resume Next
Application.CommandBars("Clipboard").Controls(4).E xecute
On Error Goto 0
End Sub


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John Flynn" wrote:

I have an excel application that transfers excel worksheet
images (portions of a worksheet) into PowerPoint which has
a corresponding "catcher" macro.

I must first paste the image in Word as a bitmap then copy
it to PowerPoint (you cannot do a paste special in
PowerPoint via a macro).

The issue is that after about 25-30 transfers the process
fails because of insufficient memory. I then close
everything and reopen and resume until done or until it
fails again. I repeat this process until all images are
transferred.

Are there any commands that will recover memory or clear
the clipboard or whatever it is that causes this issue.

Thanks.



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
Pivot tables - memory issues - please help apss40 Excel Discussion (Misc queries) 2 June 20th 09 01:38 AM
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Excel Memory Issues TXSteveO Excel Discussion (Misc queries) 4 January 1st 07 01:26 AM
Out of Memory Rob Setting up and Configuration of Excel 1 March 7th 06 04:01 PM
Out of memory? JENNYC Excel Discussion (Misc queries) 1 November 28th 05 10:58 PM


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

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"