Consulting

Results 1 to 4 of 4

Thread: Solved: VBE Crashes While Editing Cond Fmting Macro

  1. #1

    Solved: VBE Crashes While Editing Cond Fmting Macro

    I have been writing a very complicated utility macro to add conditional formatting to all the cells in an array.

    For the last two days I've been having a succession of VBE crashes while I'm editing. There are no errors according to the recovery system. I get no error messages. Oddly, a crash often happens when I've paused editing to think about this and that, so all I'm doing is staring at the screen.

    I'm not having crashes when I'm editing other macros ... just the conditional formatting one. When I run the macro lately, it has been running to completion, but not quite accomplishing what I want.

    It's really becoming a nuisance. Since there is no "apparent" error occurring, I can't ask for a solution. I'm just wondering if anyone else has ever experienced anything like this? I hate to think I'm the only one.

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    There is some corruption likely. Copy the text of the code to notepad and delete the module, save, close, re-open, add a new module and re-add the code.

  3. #3
    Thanks, Jake. I'll give it a try.
    The poltergeist hasn't been as active today, but he's still there.

  4. #4
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    This is a little off topic but do the vba modules crash and become corrupt because of bad programming or is it completely random? I'm less inclined to think it is random because I have restarted this project 3 times since I started working and each time I get excited about finishing it and realeasing it to the masses... It crashes.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

Posting Permissions

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