Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 "Wu" wrote: 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. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 On Sun, 25 May 2008 02:06:00 -0700, Wu wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto run macro | Excel Discussion (Misc queries) | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
macro help - closing without saving & empty clipboard | Excel Discussion (Misc queries) | |||
Macro - Auto Run | Excel Worksheet Functions |