moving Excel COM Automation to .NET Interop (XlNames.Item)

wakestarwakestar Member Posts: 207
edited 2013-07-05 in NAV Three Tier
Hi

Does anybody have working .NET Interop code for this (old) COM Automation code:
XlNames := XlWorkBook.Names;
XlName := XlNames.Item('some-name');
XlRange := XlName.RefersToRange;
XlRange.Value := 'some value'

According to the documentation:
http://msdn.microsoft.com/en-us/library ... 92981.aspx
XLNames.Item has optional parameters, which I think is not supported in NAV 2013 .NET Interop.

However, I used the code above many times in the past... and I would like to get rid of COM Automation.

Regards

Comments

Sign In or Register to comment.