Control problem

mitech

New Member
Joined
Apr 16, 2011
Messages
2
Hi
A few years ago i programmed a excel sheet in 2003 and now when we run it with 2007 years version we got error "Can't exit design mode because control can't be created". The confusing thing is that the control that is causing the problem, cboMeny, isn't on any sheet anymore. But when i hit F2 in vba mode i can see it as a member. Any suggestion how to fix this problem?

Regards
Michael
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Do you have code in the Workbook_Open event procedure that adds controls?

Perhaps cboMeny is on a sheet but its .Visible property is set to False.

While in Excel 2003, you might try to run a macro to loop through the sheets and delete cboMeny e.g.
Code:
Sub Delete_cboMeny()
    Dim ws As Worksheet
    On Error Resume Next
    For Each ws In Worksheets
        ws.Shapes("cboMeny").Delete
    Next ws
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top