ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Exception with EXCEL 2007 API (https://www.excelbanter.com/excel-worksheet-functions/128516-exception-excel-2007-api.html)

Sharad Birajdar

Exception with EXCEL 2007 API
 
Hi,

I've written an office interface with VS2003. This

interface works fine with all office version except

office 2007. It throws folllowing the expection

at

System.RuntimeType.ForwardCallToInvokeMember(Strin g

memberName, BindingFlags flags, Object target,

Int32[] aWrapperTypes, MessageData& msgData)

at

Microsoft.Office.Interop.Excel.Shape.get_Hyperlink (

) at

Call to delete function throws this exception.

(Following is the code)

Excel.Shape newShp =

xlSheet.Shapes.Item(xlSheet.Shapes.Count);

address =

address.Replace(cb.objectId,propBean.objectId);

newShp.Hyperlink.Delete();

this hyperlink property has value as "<error: an

exeception of type:

{System.Runtime.Intropservices.COMException}

occured"



Can anybody help me in this regard?




All times are GMT +1. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com