View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] bpv.hamdorff@gmail.com is offline
external usenet poster
 
Posts: 4
Default Debug.Print statement causes Excel crash

After some search effort I found the cause for an Excel crash. Just in case you experience the same this is what I discovered:

In Excel 2003, 2007 (and later?) the statement

Debug.Print , "test"

causes Excel to crash. There is an <empty expression in front of the comma. The crash occurs only when a piece of VBA is executed without the Visual Basic editor window opened.