View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default Application.quit error

Hello

My code looks at a cell in my active workbook and if the value is
zero, then quit. It works fine if I step through it using F8, but
when the code runs through Workbook_Open, it will error out. When i
hit debug, it just shuts down Excel. Any ideas?


Very bad practice!!!
*NEVER, NEVER, NEVER* write code that shuts down a non-automated
instance of Excel (or any other MS Office app)!!!

If startup conditions do not meet your criteria then just close your
workbook!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion