Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to automatically close excel after I do a save as event macro. The problem that I am encountering has to do with the fact that the save as feature is saving the worksheet as a .txt file. I can't seem to get the workbooksObject.close to work. Any suggestions
Ryan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How does it not work? Does it appear to do nothing or does it prompt you to do something else
I suspect it might be the latter. Try setting the saved property to true before closing ActiveWorkbook.Saved = Tru ActiveWorkbook.Clos set WorkbookObject = Nothing ' this is your object |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vba - Save but don't close | Excel Worksheet Functions | |||
Auto save and close | Excel Worksheet Functions | |||
save and close | Excel Discussion (Misc queries) | |||
Save/Close All | Excel Discussion (Misc queries) | |||
To save and close | Excel Worksheet Functions |