[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Error when running Excel 2003 file in 2007 when activex content is disabled

Asked by Estate_Master in Microsoft Excel Spreadsheet Software, ActiveX

Tags: excel, activex

I have an Excel spreadsheet developed in Excel 2003. It has many activex controls on the worksheets, such as images, buttons, checkboxes, etc.

If I open this xls file in Excel 2007 when the Trust Center settings for AcvtiveX Controls is set to 'Disable all controls without notficiation, I receive various errors. These errors are occurring when the file's 'auto_open' VBA routine is trying to select certain worksheets.

The error is:
Run-time Error 57121 Application defined or object defined error

The error occurs on the following line in my auto_open code:
Sheets("Probability").Select

There are several activex controls on this particular sheet.

When I then manually select the 'Probability' sheet in my workbook by clicking the sheet tab, i then get this error:
Can't exit design mode because Control 'Image1' can not be created

If i delete this particular sheet, then the error will then continue to occur on another sheet that has activex controls on it.

Once this file is then saved in Excel 2007 in XLS format,  the error will always occur for that file, even if I try and set the Trust Center settings for AcvtiveX Controls back to 'Enable All Controls'

Can anyone explain why this would be occurring, and why after the file is saved in excel 2007 when the activex controls were disabled, it doesnt work when they are enabled again?
[+][-]10/28/09 04:06 AM, ID: 25681836Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625