Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default disable message box during VBA code execution


Hi,
I have a VBA Function which copies and pastes Ranges automatically.
When executing the function, there are always message boxes like
"There is a large amount of information on the clipboard. Do you want
to be able to paste this information into another program later? To
save it to the clipboard, click Yes. To delete it and free memory,
click No"

I always want to click Yes, as otherwise my code wouldnt work.
Ho can I disable the displayment of these messages?

Cheers
Juergen


--
juergenkemeter
------------------------------------------------------------------------
juergenkemeter's Profile: http://www.excelforum.com/member.php...o&userid=25248
View this thread: http://www.excelforum.com/showthread...hreadid=500417

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default disable message box during VBA code execution

Application.cutcopymode = false

should clear the clipboard.

You could try:

application.displayalerts=false
'your code
application.displayalerts=true



juergenkemeter wrote:

Hi,
I have a VBA Function which copies and pastes Ranges automatically.
When executing the function, there are always message boxes like
"There is a large amount of information on the clipboard. Do you want
to be able to paste this information into another program later? To
save it to the clipboard, click Yes. To delete it and free memory,
click No"

I always want to click Yes, as otherwise my code wouldnt work.
Ho can I disable the displayment of these messages?

Cheers
Juergen

--
juergenkemeter
------------------------------------------------------------------------
juergenkemeter's Profile: http://www.excelforum.com/member.php...o&userid=25248
View this thread: http://www.excelforum.com/showthread...hreadid=500417


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default disable message box during VBA code execution


works fine, thx!!
jk


--
juergenkemeter
------------------------------------------------------------------------
juergenkemeter's Profile: http://www.excelforum.com/member.php...o&userid=25248
View this thread: http://www.excelforum.com/showthread...hreadid=500417

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
Code Execution Message canderson Excel Discussion (Misc queries) 1 October 9th 09 04:28 PM
Disable VBA code execution when loading a workbook Charles Excel Discussion (Misc queries) 4 October 14th 05 09:12 PM
disable and enable macro execution using VBA in another workbook? keithb Excel Programming 1 August 17th 05 06:21 PM
Code Execution has been interrupted message Rich in Yorktown Excel Programming 1 December 20th 04 05:41 PM


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