Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


--
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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Excel VBA Hell

What does it do?

--
Tim Williams
Palo Alto, CA


"x86_man" wrote in message
...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Puzzled by statement about R1C1 style in "Escape from Excel Hell" [email protected] Excel Discussion (Misc queries) 3 April 12th 06 01:04 AM
Need to Escape from Excel Forumla Hell! Julie P. Excel Worksheet Functions 3 April 29th 05 05:07 PM
checkbox hell eRiC Excel Programming 3 July 16th 04 07:09 PM
checkbox hell eRiC Excel Programming 0 July 16th 04 04:40 AM
Excel ADO.Net Hell :S Kevin Harrison Excel Programming 4 August 14th 03 11:09 AM


All times are GMT +1. The time now is 06:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"