A colleague asked me to test one of his Excel-projects, a medium sized Workbook with 4 code modules and 6 user forms. The first thing I did was to put a Stop statement in the beginning of the Workbook_Open Sub, saved the Workbook and closed it. Upon reopening the Workbook I’d expected the Stop statement to throw me into debug mode in the Workbook_Open Sub, but it didn’t. I replaced the Stop statement with a Msgbox and resaved the workbook and closed it. When I reopened the workbook the Msgbox showed up. I once again put Stop statement in the code on the line after the Msgbox resaved the workbook and closed it. When I reopened the workbook the Msgbox showed up but the Stop statement was ignored. What’s happening? Isn’t a Stop statement unconditional? I’m running Excel 2003 on a computer running XP with SP2.
//Gunnar[/b]
//Gunnar[/b]