Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Macro programming
I'm just starting to learn VBA.
I'm trying to write a macro that will close an excel template without saving the sheet. I can make the active sheet close (ActiveSheet.Close), but I get the confirmation window (Yes... No... Cancel) for saving the sheet. I don't want to save. Anyone know how I can add to my macro to automatically close the sheet without saving? I tried ActiveSheet.Close.False and this didn't work. Also, anyone have any good resources to help me learn VBA? Thanks! Kathy |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Macro programming
ActiveWorkbook.Close SaveChanges:=False
-- Regards, Tom Ogilvy Kass wrote in message ... I'm just starting to learn VBA. I'm trying to write a macro that will close an excel template without saving the sheet. I can make the active sheet close (ActiveSheet.Close), but I get the confirmation window (Yes... No... Cancel) for saving the sheet. I don't want to save. Anyone know how I can add to my macro to automatically close the sheet without saving? I tried ActiveSheet.Close.False and this didn't work. Also, anyone have any good resources to help me learn VBA? Thanks! Kathy |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Macro programming
Thanks, Tom. This worked great!
-----Original Message----- ActiveWorkbook.Close SaveChanges:=False -- Regards, Tom Ogilvy Kass wrote in message ... I'm just starting to learn VBA. I'm trying to write a macro that will close an excel template without saving the sheet. I can make the active sheet close (ActiveSheet.Close), but I get the confirmation window (Yes... No... Cancel) for saving the sheet. I don't want to save. Anyone know how I can add to my macro to automatically close the sheet without saving? I tried ActiveSheet.Close.False and this didn't work. Also, anyone have any good resources to help me learn VBA? Thanks! Kathy . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007-macro programming logic for data validation | Excel Discussion (Misc queries) | |||
Macro Programming Question | Excel Discussion (Misc queries) | |||
Excel VBA/Macro programming for beginners | New Users to Excel | |||
Website about excel macro programming | Excel Programming | |||
Macro Programming | Excel Programming |