working on excel VBA, want to close a particular excel file (entire excel not workbook) without saving?
I have used "application.quit" but it closes all other excel files as well..please suggest how to close that particular excel file without saving and rest excel files will remain as it is.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
SMal.tmcc
11 years ago
did find this with a vbscript
http://www.pcreview.co.uk/forums/there-dos-command-close-excel-worksheet-t2213889.html
Comments:
-
Thanks but i want to use simple VBA code for that - appfreak 11 years ago
-
do not know VBA but will these help
http://www.exceltip.com/st/Close_a_workbook_using_VBA_in_Microsoft_Excel/469.html
http://www.ozgrid.com/forum/showthread.php?t=59208
http://www.vbaexpress.com/kb/getarticle.php?kb_id=339 - SMal.tmcc 11 years ago