Results 1 to 5 of 5

Thread: VB Editor Crashes outlook

  1. #1

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    VB Editor Crashes outlook

    I've been playing with writing outlook macros and prototyping various ideas for a project I'm about to start. Everything was fine until about 1/2 hour ago when outlook started crashing every time I open the vb editor. Does anyone have any idea why this is happening?

    It might be something to do with the last thing I tried which was instantiating a customer form in the startup method but then I'd expect it to crash when I fire up outlook - instead it fires up fine but CTDs when I open the vb editor.

    Deleting the vbaProject.otm means I can open the editor again but, of course, all my work is lost

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB Editor Crashes outlook

    Browse in Explorer to your vbaproject.otm location -
    C:\Documents and Settings\VB-Guru\Application Data\Microsoft\Outlook
    Then make a backup copy of it and name it accordingly.

    Then delete your vbaproject.otm file (After you close Outlook) and then re open Outlook and see iif you can open the VBA IDE again without it crashing.

    If you can open it then your original otm file was corrupt. You can possibly recover the code by adding a class to your new project and selecting
    your backup copy of your otm. If you still cant do it then you may be able to read some of the data in the original otm file by using Wordpad or
    Notepad to open it with. Its nothing more then an encrypted textfile.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    Re: VB Editor Crashes outlook

    Hi Rob,
    yep the ide opens if I delete the otm.

    I was only prototyping so losing my work isn't too big a deal but I was more worried about the fact it seemed to keep happening so I couldn't progress.

    From a bit of experimentation I think it was something to do with including a dbGrid on the form as this always seemed to be the last control I added. I've switched to a datagrid and no longer seem to be getting the problem (fingers crossed). Mind you, when explicitley testing it I was able to add a dbGrid and not get the crash (until about 1/2 hour later ) so it could be a complete red herring.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB Editor Crashes outlook

    DBGrid huh, hmm, could it be that it was bound to an invalid source?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    Re: VB Editor Crashes outlook

    Actually that's quite likely. I was playing/learning my way around it's datasource so it's quite likely I just plain got it wrong. Thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width