![]() |
![]() |
|
|||||||
| 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
Location: London
Posts: 5
|
I wish to close a workbook during a macro without saving it.
Currently, the vba command 'ActiveWorkbook.Close' brings up the usual dialogue box asking if I wish to save or not and I am able to select No, but wish to automate this process. Due to the large amount of data, I also get a message if I want to save the data in the clipboard - again I wish to automate the No option. How can I do this? |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
For the clipboard...just clear it with Application.cutcopymode = false HTH Ivan |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: London
Posts: 5
|
Both excellent - many thanks
Andrew |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|