Maybe it's security issue. Try to run it as admin for testing.
>
>Users just recently began reporting problems with some Excel automation code that used to work:
>
>loDocument.styles.add(lcStyle)
>
>generates the error: OLE IDispatch exception code 0 from Microsoft Excel: Unable to get the Add property of the Styles class..
>
>This is not a commonly used feature of the app, so the problem may have existed for awhile. I've tested and found the problem in Excel 2007 and 2010. Any help would be appreciated.
>
>TIA
--sb--