PC Review


Reply
Thread Tools Rate Thread

Disable clipboard confirmation

 
 
=?Utf-8?B?aG1t?=
Guest
Posts: n/a
 
      22nd Nov 2006
In closing a large file, Excel asks if you want to retain its contents in the
clipboard. This confirmation request even occurs when a macro closes the
file. What code do I use to disable this confirmation message (and proceed
to just close the file)?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      22nd Nov 2006
Application.CutCopyMode = False

before you execute the command that causes the prompt will clear the
clipboard and prevent it.

or

Application.DisplayAlerts = False
' code that causes the prompt
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"hmm" wrote:

> In closing a large file, Excel asks if you want to retain its contents in the
> clipboard. This confirmation request even occurs when a macro closes the
> file. What code do I use to disable this confirmation message (and proceed
> to just close the file)?
>
>

 
Reply With Quote
 
=?Utf-8?B?aG1t?=
Guest
Posts: n/a
 
      22nd Nov 2006
Thanks Tom.

FYI, clearing the clipboard is faster execution than disabling display
alerts. My next step is to disable screen updating.

"Tom Ogilvy" wrote:

> Application.CutCopyMode = False
>
> before you execute the command that causes the prompt will clear the
> clipboard and prevent it.
>
> or
>
> Application.DisplayAlerts = False
> ' code that causes the prompt
> Application.DisplayAlerts = True
>
> --
> Regards,
> Tom Ogilvy
>
>
> "hmm" wrote:
>
> > In closing a large file, Excel asks if you want to retain its contents in the
> > clipboard. This confirmation request even occurs when a macro closes the
> > file. What code do I use to disable this confirmation message (and proceed
> > to just close the file)?
> >
> >

 
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
Re: How do I disable delete confirmation? Stefan Blom Microsoft Word Document Management 0 23rd Jan 2007 02:29 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
Need to disable a confirmation =?Utf-8?B?TGFyZTI=?= Microsoft Word Document Management 2 14th Mar 2006 12:41 PM
Disable shutdown confirmation Jared Holzman Windows XP Embedded 3 3rd Jun 2005 08:17 AM
How do I disable Office Clipboard so Copy Paste uses traditional Windows Clipboard dwilliamson@ivsi.com Microsoft Excel Discussion 10 24th Feb 2005 02:36 PM


Features
 

Advertising
 

Newsgroups
 


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