Macros working in Excel 2003 crashes in Excel 2010.
we have some macros embedded Excel file that works charm in Excel 2003 but does not work in Excel 2010
there is an Cell Range for which the Excel is failing.
it gives me an error -- Run Time Error '-2147417848 ' Method "Range" of Object '_Worksheet' Failed. with end and Debug options like we get in VBA
the source responsible was -
If Not IsNull(Target.Text) And (Target.Row = 5 Or Target.Row = 6) Then
ThisWorkbook.Sheets(1).Range(sCell) = UCase$(Target.Text)
End If
i am not sure if this code is not compatible with Excel 2010 version
also some times it does not give me an error but the excel crashes when i click in the C5 block and come out of it. i.e focus out of it.
Can any one help. Quick reply would be appreciated