+ Reply to Thread
Results 1 to 4 of 4

Excel VBA Hell

Hybrid View

  1. #1
    Registered User
    Join Date
    05-12-2006
    Posts
    1

    Excel VBA Hell

    I've got some code and Excel crashes. Not everytime I run it. After about three or four runs in a row excel doesn't even throw an error an kicks me out.
    Sometimes I get an "Automation Error; The server threw an exception", but again it is not consistant. Should I be waiting for something to close? I'm clueless. Thanks.

  2. #2
    Tim Williams
    Guest

    Re: Excel VBA Hell

    What does it do?

    --
    Tim Williams
    Palo Alto, CA


    "x86_man" <x86_man.27pu7y_1147473002.2771@excelforum-nospam.com> wrote in message
    news:x86_man.27pu7y_1147473002.2771@excelforum-nospam.com...
    >
    > I've got some code and Excel crashes. Not everytime I run it. After
    > about three or four runs in a row excel doesn't even throw an error an
    > kicks me out.
    > Sometimes I get an "Automation Error; The server threw an exception",
    > but again it is not consistant. Should I be waiting for something to
    > close? I'm clueless. Thanks.
    >
    >
    > --
    > x86_man
    > ------------------------------------------------------------------------
    > x86_man's Profile: http://www.excelforum.com/member.php...o&userid=34395
    > View this thread: http://www.excelforum.com/showthread...hreadid=541732
    >




  3. #3
    bgeier@fuse.net
    Guest

    Re: Excel VBA Hell

    I had a similar situation in a userform, I never did find where or how.
    To recover, I had to rebuild the form, or load it from an earlier save
    (I also exported the form after I created it, so I could also import it
    too.)

    If you have not saved a prior version, or have not exported the form,
    you are pretty much out of luck. You may get lucky by closing
    everything and rebooting the machine, loading the workbook, and then
    exporting the modules so you can recover later.


  4. #4
    AA2e72E
    Guest

    RE: Excel VBA Hell

    Sounds like you are not closing your automation session.
    Reboot your computer, run your code once, and terminate your application.
    Using Task Manager, examine the Process TAB: Is there and entry Excel? If
    there is, your automation session is still active; your code needs to
    terminate the Excel session.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1