PC Review


Reply
Thread Tools Rate Thread

Clipboard Message

 
 
itsyash@gmail.com
Guest
Posts: n/a
 
      16th Oct 2006
Hi All,

I am running a macro that opens two files, copies 2500 records from one
file to the other and then one of the files is closed.

Now while closing this file, i get a message saying "There is a large
amount of data on the clipboard. Do you want to be able to paste this
information into another program later?"

Along with this it gives me yes/no and cancel buttons.

I dont want this box to appear and also clear the clipboard before the
file closes. Is there a way to do this?

I want to avoid send key..

I appreciate any help.

Thanks,
Yash

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmU=?=
Guest
Posts: n/a
 
      16th Oct 2006
Can you not just clear the clipboard first? Avoiding the messages?

Steve

"(E-Mail Removed)" wrote:

> Hi All,
>
> I am running a macro that opens two files, copies 2500 records from one
> file to the other and then one of the files is closed.
>
> Now while closing this file, i get a message saying "There is a large
> amount of data on the clipboard. Do you want to be able to paste this
> information into another program later?"
>
> Along with this it gives me yes/no and cancel buttons.
>
> I dont want this box to appear and also clear the clipboard before the
> file closes. Is there a way to do this?
>
> I want to avoid send key..
>
> I appreciate any help.
>
> Thanks,
> Yash
>
>

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      16th Oct 2006
Application.DisplayAlerts = False
Activeworkbook.Close SaveChanges:=False
Application.DisplayAlerts = True

or similar to as Steve suggest

Activecell.copy
Activeworkbook.Close SaveChanges:=False

Or as Steve suggested
Application.CutcopyMode = False
Activeworkbook.Close Savechanges:=False

--
Regards,
Tom Ogilvy


"(E-Mail Removed)" wrote:

> Hi All,
>
> I am running a macro that opens two files, copies 2500 records from one
> file to the other and then one of the files is closed.
>
> Now while closing this file, i get a message saying "There is a large
> amount of data on the clipboard. Do you want to be able to paste this
> information into another program later?"
>
> Along with this it gives me yes/no and cancel buttons.
>
> I dont want this box to appear and also clear the clipboard before the
> file closes. Is there a way to do this?
>
> I want to avoid send key..
>
> I appreciate any help.
>
> Thanks,
> Yash
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot empty the clipboard message - how to stop this message CJ Microsoft Excel Crashes 0 16th Dec 2008 02:35 PM
Transfer clipboard from Task pane clipboard(office?) content to Excel (windows?) clipboard? tskogstrom Microsoft Excel Programming 2 6th Mar 2007 12:50 PM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
Clipboard Message Graham Haughs Microsoft Excel Programming 2 25th Aug 2004 08:45 AM
clipboard message box =?Utf-8?B?anVsaQ==?= Microsoft Excel Misc 1 19th May 2004 04:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:00 PM.