Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
If anyone knows how to fix the following issue, I will really appreciate.<o></o>
<o> </o>
I converted the application built in ms excel 2003 to ms excel 2010. There is a code auto excute built in excel 2003 which runs when user open the workbook. This code is sitting in module 9. When I converted the file into ms excel 2010 and then open the file it give me a message - "Compile Error in hidden module: MODULE 9" Along with the message "This error commonly occurs when code is incompatible with the version, platform or architecture of this application."<o></o>
<o> </o>
The code is as follows which was in excel 2003:<o></o>
<o> </o>
Sub Autpen()<o></o>
'<o></o>
'<o></o>
'<o></o>
Worksheets("Marketing_Model").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("I5").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("Marketing_Model").Select<o></o>
Range("A1").Select<o></o>
'<o></o>
Worksheets("Sales_1").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("D8").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("COST SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("B9:D9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("REVENUE SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("C5").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("TAX SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("K8").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("K9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("K10").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B14").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B15").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B16").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("BALANCE").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("D9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("F9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
'<o></o>
Range("D8").Select<o></o>
VAR_1 = 8<o></o>
Do Until Range("D" & VAR_1).Value = "Dates:"<o></o>
Range("D" & VAR_1).Select<o></o>
VAR_1 = VAR_1 + 1<o></o>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace w:st="on">Loop</st1lace><o></o>
ActiveCell.Offset(3, 0).Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
ActiveCell.Offset(1, 0).Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
Worksheets("Marketing_Model").Select<o></o>
Worksheets("BALANCE").Select<o></o>
'<o></o>
End Sub<o></o>
<o> </o>
<o> </o>
Thanks
If anyone knows how to fix the following issue, I will really appreciate.<o></o>
<o> </o>
I converted the application built in ms excel 2003 to ms excel 2010. There is a code auto excute built in excel 2003 which runs when user open the workbook. This code is sitting in module 9. When I converted the file into ms excel 2010 and then open the file it give me a message - "Compile Error in hidden module: MODULE 9" Along with the message "This error commonly occurs when code is incompatible with the version, platform or architecture of this application."<o></o>
<o> </o>
The code is as follows which was in excel 2003:<o></o>
<o> </o>
Sub Autpen()<o></o>
'<o></o>
'<o></o>
'<o></o>
Worksheets("Marketing_Model").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("I5").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("Marketing_Model").Select<o></o>
Range("A1").Select<o></o>
'<o></o>
Worksheets("Sales_1").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("D8").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("COST SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("B9:D9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("REVENUE SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("C5").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("TAX SUMMARY").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("K8").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("K9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("K10").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B14").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B15").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("B16").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
'<o></o>
Worksheets("BALANCE").Select<o></o>
ActiveSheet.Unprotect<o></o>
Range("D9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("F9").Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
'<o></o>
Range("D8").Select<o></o>
VAR_1 = 8<o></o>
Do Until Range("D" & VAR_1).Value = "Dates:"<o></o>
Range("D" & VAR_1).Select<o></o>
VAR_1 = VAR_1 + 1<o></o>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace w:st="on">Loop</st1lace><o></o>
ActiveCell.Offset(3, 0).Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
ActiveCell.Offset(1, 0).Select<o></o>
Selection.NumberFormat = "mm/dd/yyyy"<o></o>
Range("A1").Select<o></o>
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True<o></o>
Worksheets("Marketing_Model").Select<o></o>
Worksheets("BALANCE").Select<o></o>
'<o></o>
End Sub<o></o>
<o> </o>
<o> </o>
Thanks