I know this particular project of mine compiles and works on my machine. I have Office 2007 & IE9 on my station. The project does use a function that only exists in IE9 and not in IE8. I send this xlsm file over to another machine which has exact same version of office but IE8. It also has visual basic installed on that machine as well. To make the story short, when I try to compile my project on this machine it crashes in the middle of it. JIT debugger mentions something about an unhandled exception occurred in win32 for EXCEL.exe (6744). I have no idea what it means but both machines have similar hardware architecture.

My question: even if the function call is illegit for IE8 at least I expect it to compile but bomb out when I try to execute the macro.

How do I resolve this problem?