Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

use macro to set auto( about clipboard )

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wu - 25 May 2008 10:06 GMT
I write a macro,  there will some data copy from a sheet1 to another sheet2,
and then , the sheet1 will be closed. while the macro is running, there is a
message to ask me some data in clipboard, will I use it. I will choose "NO"
manually everytime when the macro running.
How can I write something in macro to skip this message to let the macro
non-stop finish.
Mike H - 25 May 2008 10:19 GMT
Hi,

You can clear the clipboard with
Application.CutCopyMode=False

or you can use
Application.DisplayAlerts=False
'You code to close workbook
Application.DisplayAlerts=True

Either of which should suppress that message

Mike

> I write a macro,  there will some data copy from a sheet1 to another sheet2,
> and then , the sheet1 will be closed. while the macro is running, there is a
> message to ask me some data in clipboard, will I use it. I will choose "NO"
> manually everytime when the macro running.
> How can I write something in macro to skip this message to let the macro
> non-stop finish.
Gord Dibben - 25 May 2008 17:43 GMT
Sub macroname()

your code to copy and paste

Application.CutCopyMode = False  'clears the clipboard

continue with your code.

End Sub

Gord Dibben  MS Excel MVP

>I write a macro,  there will some data copy from a sheet1 to another sheet2,
>and then , the sheet1 will be closed. while the macro is running, there is a
>message to ask me some data in clipboard, will I use it. I will choose "NO"
>manually everytime when the macro running.
>How can I write something in macro to skip this message to let the macro
>non-stop finish.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.