LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default InsertLines crashes Excel


Hello group,

I am writing code which adds a CheckBox and an associated Click event
handler to a worksheet. The event handler code is about 250 lines long.
I've tested the event handler code, and it works.

The problem is that Excel crashes while executing the .InsertLines
method. Visual Basic says "Automation error Exception occurred." and
then Excel crashes and attempts to recover files.

Worse, this happens sometimes, but not all the time, when the exact
same subroutine is called to create the CheckBox_Click code.

I have searched posts and read that some virus scanners react to
InsertLines statements. I have Norton Internet Security Professional. I
disabled Norton and I still get errors. Then I ran the code on a
different computer with no virus scanner and a different version of
Excel (2002 instead of 2003). It also crashes in the same way.

Any ideas what I should be doing differently to get around this?

Thanks!
Andy


--
asleeper
------------------------------------------------------------------------
asleeper's Profile: http://www.excelforum.com/member.php...o&userid=26723
View this thread: http://www.excelforum.com/showthread...hreadid=399903

 
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
Excel Crashes on me Andrew Excel Discussion (Misc queries) 5 August 31st 06 01:28 PM
InsertLines crashes Excel Andy Sleeper Excel Programming 3 August 29th 05 05:57 AM
InsertLines and AddFromString crash excel Chip R. Excel Programming 1 August 13th 04 03:28 PM
Excel 97 crashes Tom Excel Programming 1 June 20th 04 10:15 PM
VBA crashes Excel Bura Tino Excel Programming 4 October 18th 03 09:01 AM


All times are GMT +1. The time now is 07:23 PM.

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"