raj, use Application.Quit
If you're not familiar with Macros, see David McRitchie's "Getting Started
with Macro and User Defined Functions":
http://www.mvps.org/dmcritchie/excel/getstarted.htm
or post back with more info
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
"raj" wrote in message
...
help, i need to create a command button or macro that when clicked will
exit
microsoft excel!! please help.:(