Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jamessinc
 
Posts: n/a
Default Item in clipboard

I have a macro that will open a file and copy a range to another file. Then
I will close the file I copied the range from but I am asked if I wish to
clear the clipboard after each copy. How do I stop the clipboard request
from stoping the macro?

Thanks
Jim
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try
application.displayalerts=false
'close the file
application.displayalerts=true

"jamessinc" wrote:

I have a macro that will open a file and copy a range to another file. Then
I will close the file I copied the range from but I am asked if I wish to
clear the clipboard after each copy. How do I stop the clipboard request
from stoping the macro?

Thanks
Jim

  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Jim

After the copy and paste is complete and before you close the file add this
line

Application.CutCopymode = False

Gord Dibben Excel MVP

On Mon, 29 Nov 2004 03:05:02 -0800, jamessinc
wrote:

I have a macro that will open a file and copy a range to another file. Then
I will close the file I copied the range from but I am asked if I wish to
clear the clipboard after each copy. How do I stop the clipboard request
from stoping the macro?

Thanks
Jim


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
Item wise balance in Pivot Table Samad Excel Discussion (Misc queries) 3 January 10th 05 07:43 PM
Item wise balance in Pivot Table Samad Excel Discussion (Misc queries) 0 January 8th 05 12:15 PM
Can't copy without clipboard open Bill Williams Excel Discussion (Misc queries) 0 January 4th 05 05:41 PM
How do I use a" item description" in excel to consolidate totals? D Excel Discussion (Misc queries) 1 December 7th 04 05:06 PM
XML Source Menu Item disabled?? File version?? Jay Lauffer Excel Discussion (Misc queries) 1 December 3rd 04 11:23 PM


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