Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding code to control on form causes Excel to crash


Good day folks,

I have a form which shows the user information which has been entere
previously and asks for new user input.

The form worked fine until I added some new controls and added the cod
to populate the combo boxes which a few choices.

I put a stop in the code and stepped through to see what the proble
was and it ran fine until it got to the new code. When it gets to th
first line of the new code excel crashes every time.

I have tried deleting the controls and starting again by adding them t
the form and I have tried using a new form - both cause excel t
crash....
Is there a memory limit that I'm reaching? The entire spreadsheet onl
weighs in at 1mb so surely not?

Any advice on how to solve this issue?

Thanks a lo

--
skuzap
-----------------------------------------------------------------------
skuzapo's Profile: http://www.excelforum.com/member.php...fo&userid=2743
View this thread: http://www.excelforum.com/showthread.php?threadid=46946

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Adding code to control on form causes Excel to crash

It would be useful if you would post the code and point out the line on
which your code bombs.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding code to control on form causes Excel to crash


Hi Michael,

Thanks for your reply.

Regarding the code that causes the crash - it can be anything
Basically as soon as I add any type of new code to control any kind o
new control it bombs. I don't think the problem can be code related ca
it?

It seems to me that it's a memory issue or something

--
skuzap
-----------------------------------------------------------------------
skuzapo's Profile: http://www.excelforum.com/member.php...fo&userid=2743
View this thread: http://www.excelforum.com/showthread.php?threadid=46946

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding code to control on form causes Excel to crash


Hi folks,

further to this problem, I've now tried the same code on my pc at hom
with no problems. I also used the code cleaner from Appspro which To
Ogilvy suggested. I still get the same problem on the form so I made
test version of my form (stripped down version in a new spreadsheet
and tried that with the same crash problem again.

The code that causes the crash is very simple. The crash occurs whe
the "With" line is reached:

Private Sub cmdTest_Click()

With frmCosting.cmbOHType
.RowSource = ""
.AddItem "Big"
.AddItem "Small"
End With



I'd appreciate any advice!
Thanks

frmCosting.Show

End Su

--
skuzap
-----------------------------------------------------------------------
skuzapo's Profile: http://www.excelforum.com/member.php...fo&userid=2743
View this thread: http://www.excelforum.com/showthread.php?threadid=46946

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
Drop Down Form control always causes excel to crash headly Excel Discussion (Misc queries) 1 June 22nd 06 03:38 AM
Adding code to a control on a form causes excel to crash Skuzapo Excel Programming 1 September 21st 05 02:13 PM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM
Design Best Practices: Form Control Code in Worksheet or Module Bing Excel Programming 2 December 23rd 04 02:31 PM
adding Activex control through code works BUT... Cannot access ob keepITcool Excel Programming 0 July 14th 04 04:28 PM


All times are GMT +1. The time now is 02:38 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"