Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
This might be a dumb question. I have a macro - it opens a workbook, copies a range, pastes the range in the original workbook, then closes the workbook that was opened in the first place. It promps to save the clipboard - how do you turn this off? Thanks for your help |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
somewhere before the close put this in the macro Application.displayalerts = false and before end sub Application.displayalerts = true. when turning off a built in excel function to run a macro, always turn in back on BEFORE you exit the sub. Regards FSt1 "Jeff" wrote: Hi, This might be a dumb question. I have a macro - it opens a workbook, copies a range, pastes the range in the original workbook, then closes the workbook that was opened in the first place. It promps to save the clipboard - how do you turn this off? Thanks for your help |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Jeff
After the paste line add this line to clear the clipboard Application.CutCopyMode = False -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Jeff" wrote in message ... Hi, This might be a dumb question. I have a macro - it opens a workbook, copies a range, pastes the range in the original workbook, then closes the workbook that was opened in the first place. It promps to save the clipboard - how do you turn this off? Thanks for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clipboard empty but get cannot empty CB when trying to copy | Excel Worksheet Functions | |||
Cannot empty the Clipboard | Excel Discussion (Misc queries) | |||
cannot empty the clipboard | Excel Discussion (Misc queries) | |||
"Cannot empty Clipboard" | Excel Worksheet Functions | |||
How do I empty the clipboard, when nothing is in it? | Excel Worksheet Functions |