Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have tried both suggested macro codes and neither of them work. When I go back into view the code I get the following error message?? 'Object Library invalid or contains references to object definitions that could not be found' I don't think this has caused it but I have never had this before - VB help is of no help at all! -- Leanne M (Aussie) (Changed Display name from Leanne) United Kingdom (Don''t ask me what an Aussie is doing living in the UK!) "Gary''s Student" wrote: Sub close_out() ActiveWorkbook.Saved = True ActiveWorkbook.Close End Sub -- Gary''s Student - gsnu200782 "Leanne M (Aussie)" wrote: Hi, I have a file which is to be viewed only. I have got the code to close the workbook but I want to include the fact that it should be closed without saving changes. Is this possible? My code for closing is simply ActiveWorkbook.Close Thanks -- Leanne M (Aussie) (Changed Display name from Leanne) United Kingdom (Don''t ask me what an Aussie is doing living in the UK!) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
close w/o saving | Excel Worksheet Functions | |||
Macro to Prompt User to Close After Saving | Excel Discussion (Misc queries) | |||
Close without saving | Excel Programming | |||
How can I get an excel macro to close without saving ! | Excel Programming | |||
Close without Saving In VBA | Excel Programming |