Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Clear Clip Board Memory


Hi I am writing a macro that copies and pastes alot of information fro
1 spreadsheet to another but because of the clipboard on office xp I a
running out of memory to complete the task and the macro has to end.

I have tried using the command

Application.CutCopyMode = False

But this does not seem to work!

Any ideas people!

Thank you in adavnce

--
James_Newto
-----------------------------------------------------------------------
James_Newton's Profile: http://www.excelforum.com/member.php...fo&userid=1832
View this thread: http://www.excelforum.com/showthread.php?threadid=46589

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Clear Clip Board Memory

Two thoughts:

a) Are you sure you need to use the clipboard. Most of the time it's
easier simply to write directly to a range rather than copy one range to
another.

e.g.
Range(ActiveWorkbook.Sheets(2).Cells(1, 1), _
ActiveWorkbook.Sheets(2).Cells(100, 20)).Value = _
Range(ActiveWorkbook.Sheets(1).Cells(1, 1), _
ActiveWorkbook.Sheets(1).Cells(100, 20)).Value

b) Have you tried:
Sub EmptyClipboard()
Dim myData As DataObject
Set myData = New DataObject
myData.SetText ""
myData.PutInClipboard
Set myData = Nothing
End Sub


HTH,
Gareth


James_Newton wrote:
Hi I am writing a macro that copies and pastes alot of information from
1 spreadsheet to another but because of the clipboard on office xp I am
running out of memory to complete the task and the macro has to end.

I have tried using the command

Application.CutCopyMode = False

But this does not seem to work!

Any ideas people!

Thank you in adavnce!


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
clip board Ian Excel Discussion (Misc queries) 1 March 15th 10 01:24 PM
cannot paste from clip board Harry Excel Discussion (Misc queries) 10 December 11th 06 04:49 PM
I'm trying to disable a clip board Timmulla Excel Programming 2 June 18th 05 10:13 AM
CLEAR CLIP BOARD mike Excel Discussion (Misc queries) 1 February 10th 05 03:03 PM
Clip Board Todd huttenstine Excel Programming 2 February 3rd 04 02:39 PM


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