Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Crashes when I delete Control

[Excel 2000]
I have a form containing a button that I no longer need. After running
CodeCleaner, I delete this button, compile the project and save.
When I then start up the form, a macro runs to initialise a class module -
and crashes at the line:

For each Ctl in frmManager.Controls

When I shut down excel and start up again, the file will not open.

If I don't delete the button (which incidentally is not part of the
aforementioned class group), it works fine.

Has anyone any suggestions - this is driving me mad!

Darren




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Crashes when I delete Control

Have you tried exporting the form, removing it from the project, then
re-importing the form from file?

--

"Darren Hill" wrote in message ...
[Excel 2000]
I have a form containing a button that I no longer need. After running
CodeCleaner, I delete this button, compile the project and save.
When I then start up the form, a macro runs to initialise a class module -
and crashes at the line:

For each Ctl in frmManager.Controls

When I shut down excel and start up again, the file will not open.

If I don't delete the button (which incidentally is not part of the
aforementioned class group), it works fine.

Has anyone any suggestions - this is driving me mad!

Darren

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Crashes when I delete Control

Yes, unfortunately the error still occurred.
What I have just tried is - create a new form. Copy all the controls except
the problem one over to it. Copy all Code over. Save. Delete old form. Save.
Shut down. Boot up. Pray the file opens. Yess!! Rename new form to old form.
Save.
At the moment it seems to have worked.

--
Darren
"onedaywhen" wrote in message
...
Have you tried exporting the form, removing it from the project, then
re-importing the form from file?

--

"Darren Hill" wrote in message

...
[Excel 2000]
I have a form containing a button that I no longer need. After running
CodeCleaner, I delete this button, compile the project and save.
When I then start up the form, a macro runs to initialise a class

module -
and crashes at the line:

For each Ctl in frmManager.Controls

When I shut down excel and start up again, the file will not open.

If I don't delete the button (which incidentally is not part of the
aforementioned class group), it works fine.

Has anyone any suggestions - this is driving me mad!

Darren



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
delete control toolbar check box paul[_2_] Excel Discussion (Misc queries) 3 May 15th 07 11:37 AM
Excel crashes when I try to Delete Columns lancekel Excel Discussion (Misc queries) 1 June 5th 06 06:45 PM
Excel crashes while trying to save, add or delete rows scaramushe Excel Discussion (Misc queries) 2 March 7th 06 05:07 PM
Cannot Delete an ActiveX Control Keith Willshaw Excel Programming 0 August 15th 03 09:17 AM
Cannot Delete an ActiveX Control Greg Wilson[_3_] Excel Programming 0 August 15th 03 04:27 AM


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