#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Alerts

Hi..

I have a macro that opens one sheet copies a lot of data then pastes it into another but an alert comes up asking me if I want to save whats on the clipbard that halts the code...how can I get rid of this clipbard message..

Cheer

Jimbo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Alerts

Jimbo wrote:

Hi...

I have a macro that opens one sheet copies a lot of data then pastes it into another but an alert comes up asking me if I want to save whats on the clipbard that halts the code...how can I get rid of this clipbard message...


You could try using "Application.DisplayAlerts = False" before your code
and then "Application.DisplayAlerts = True" after the code is executed.

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Alerts

another approach is to do

Application.CutCopyMode = False
after the paste. This will clear the clipboard.

--
Regards,
Tom Ogilvy

"Jimbo" wrote in message
...
Hi...

I have a macro that opens one sheet copies a lot of data then pastes it

into another but an alert comes up asking me if I want to save whats on the
clipbard that halts the code...how can I get rid of this clipbard message...

Cheers

Jimbo



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
Alerts.... gustin Excel Discussion (Misc queries) 4 January 3rd 10 11:43 PM
Alerts Mark Excel Discussion (Misc queries) 2 September 9th 09 03:01 PM
Alerts Mohamed[_2_] Excel Discussion (Misc queries) 1 December 31st 08 02:10 PM
alerts gambit Excel Worksheet Functions 3 August 22nd 06 04:02 PM
Alerts? audiophile New Users to Excel 4 December 29th 05 02:16 PM


All times are GMT +1. The time now is 10:24 AM.

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"