![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 16
|
I'm writing macros to generate reports from a database. I'm closing a workbook via macro after I've copied a quantity of data into another. I've been able to close the workbook automatically, but I still get the message about data on the clipboard & have to manually click save or delete. Anyway to automate that as well?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I think this works, use DisplayAlerts like this.
HTH |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Mark, I seem to remember that this isn't affected by DisplayAlerts. You can, however do this before closing:
Application.CutCopyMode = False or Range("A1").Copy Basically, reduce the Clipboard size so Excel won't pop up the message. |
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 16
|
Thanks Juan - the Application... line worked just fine!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|