PC Review


Reply
Thread Tools Rate Thread

Suppressing information messages during macro running

 
 
John Gilchrist
Guest
Posts: n/a
 
      26th Feb 2005
While running a macro, I encounter the following two messages.

info - There is a large amount of nformation on the clipboard. Do you want
to be able to paste ...... (I answer YES)

!!! Data on the clipboard is not the same size and shape ........(I click
OK)

Is there anyway to suppress these messages, and continue on as if I had
answered YES and OK.

Thanks,
John G



 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      26th Feb 2005
You get that first message when you close a workbook after you copied a range?

If yes:

Application.DisplayAlerts = False
Workbooks("yourworkbook.xls").Close savechanges:=False
Application.DisplayAlerts = True

If you want to just not get the message (and remove it from the clipboard):
Application.cutcopymode = false

===
For the second question, I think I'd be more careful when pasting.

I copy any size range, but I paste to the topleftcorner of the receiving range
(Not multiple cells).

John Gilchrist wrote:
>
> While running a macro, I encounter the following two messages.
>
> info - There is a large amount of nformation on the clipboard. Do you want
> to be able to paste ...... (I answer YES)
>
> !!! Data on the clipboard is not the same size and shape ........(I click
> OK)
>
> Is there anyway to suppress these messages, and continue on as if I had
> answered YES and OK.
>
> Thanks,
> John G


--

Dave Peterson
 
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
Suppressing Error Messages in a Macro Michael D. McGill Microsoft Access Macros 1 29th Dec 2004 08:33 PM
Suppressing the information bar David Schwartz Windows XP General 4 16th Oct 2004 01:00 PM
Suppressing Messages during queries Kevin G Microsoft Access Queries 3 30th Dec 2003 08:34 PM
Suppressing Msgbox during Testing libby Microsoft Excel Programming 3 7th Aug 2003 10:13 PM
Re: Suppressing Msgbox during Testing John Wilson Microsoft Excel Programming 0 7th Aug 2003 06:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:56 AM.