milesUK
Active Member
- Joined
- Jan 5, 2003
- Messages
- 388
I’m now a 2 day veteran of Office 2007! But something very strange is happening when an Excel 2000 file, opened in Excel 2007 is Saved As.. either a Macro Enabled Workbook or as a Binary Workbook.
On opening one of my Excel 2000 workbooks I am presented with a warning dialogue; “This application is about to initialize ActiveX controls that might be unsafe. If you trust the source of this file, select OK and the controls will be initialized using your current workspace settings." <OK> <Cancel>”
On selecting <OK> the file opens and shows “Compatibility Mode” in the title bar. Control buttons in the sheets have their correct, original names that I defined.
However, Save the file As.. a Macro Enabled Workbook (control names OK at this stage), close and reopen the file and command buttons in the sheets are being renamed back to a standard form (e.g. a button I’ve Named cmd_Run is being renamed as CommandButton1 when saved in an Excel2007 format) and consequently the code is rendered useless. It was created so long ago that I don’t know if it was originally CommandButton1 when placed down on the sheet!
Same occurs if I save As.. Binary Workbook.
The original 2000 workbook is protected so I retested the whole process with a newly created and unprotected Excel2000 workbook and all seems fine:
Created a new wb in Excel 2000.
Added 3 ActiveX Command Buttons and renamed them (cmd_OK, cmd_Cancel & cmd_Button3 ).
Saved and Closed the wb.
Opened the wb in Excel 2007.
No message about potentially unsafe ActiveX controls!
Command Button names OK.
Saved As.. Macro-Enabled Workbook.
Command Button names still OK.
Closed and reopened.
Command Button names still OK.
Opened the Exel2000 wb in Excel 2007.
Command Button names OK.
Saved As.. Binary Workbook.
Command Button names still OK.
Closed and reopened.
Command Button names still OK.
Has anyone else experienced this, or similar behaviour.
Miles
On opening one of my Excel 2000 workbooks I am presented with a warning dialogue; “This application is about to initialize ActiveX controls that might be unsafe. If you trust the source of this file, select OK and the controls will be initialized using your current workspace settings." <OK> <Cancel>”
On selecting <OK> the file opens and shows “Compatibility Mode” in the title bar. Control buttons in the sheets have their correct, original names that I defined.
However, Save the file As.. a Macro Enabled Workbook (control names OK at this stage), close and reopen the file and command buttons in the sheets are being renamed back to a standard form (e.g. a button I’ve Named cmd_Run is being renamed as CommandButton1 when saved in an Excel2007 format) and consequently the code is rendered useless. It was created so long ago that I don’t know if it was originally CommandButton1 when placed down on the sheet!
Same occurs if I save As.. Binary Workbook.
The original 2000 workbook is protected so I retested the whole process with a newly created and unprotected Excel2000 workbook and all seems fine:
Created a new wb in Excel 2000.
Added 3 ActiveX Command Buttons and renamed them (cmd_OK, cmd_Cancel & cmd_Button3 ).
Saved and Closed the wb.
Opened the wb in Excel 2007.
No message about potentially unsafe ActiveX controls!
Command Button names OK.
Saved As.. Macro-Enabled Workbook.
Command Button names still OK.
Closed and reopened.
Command Button names still OK.
Opened the Exel2000 wb in Excel 2007.
Command Button names OK.
Saved As.. Binary Workbook.
Command Button names still OK.
Closed and reopened.
Command Button names still OK.
Has anyone else experienced this, or similar behaviour.
Miles