PC Review


Reply
Thread Tools Rate Thread

can a C# plugin return array to Excel? or set Range values?

 
 
simonbriggs99@hotmail.com
Guest
Posts: n/a
 
      9th Nov 2006
My goal is to write a plugin to Excel that has a number of utility
functions.

To date I have been using Interop Automation but cannot get it to
return an array of values, if I do return an array then only the first
value is displayed.

I have been hunting all over the groups and web for ideas on how to
return an array from a C# plugin within Excel. Various ideas have come
up such as referencing the cell that called the function using
Extensibility.IDTExtensibility2 combined with Automation.

I have considered going 'back' to an XLL written in C/C++ but I would
prefer a more '.NET' solution. There is the Visual Studio Tools for
Office route, however there does not appear to be much in the way of
online documentation for creating even a simple plugin that has a
number of functions.

Any ideas or help greatly appreciated, I will share the solution(s)
should they be discovered.


As an aside, the plugin will be calling webservices. C# seems the
natural choice as the web service consumer code is a couple of lines
once the 'web reference' has been added to the visual studio project.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help! subscript out of range error when trying to return multiple values from function (as variant array) ker_01 Microsoft Excel Programming 2 4th Aug 2008 08:16 PM
Put values into excel range from single dimension array scottzuehl@gmail.com Microsoft Excel Programming 2 25th Feb 2006 04:33 AM
Extracting a 2 dimensional array of values from a range of Excel Values. Greg Microsoft C# .NET 2 25th Nov 2005 03:40 PM
Re - GGVT Excel To Return an Array of Values following Modification TKT-Tang Microsoft Excel Discussion 0 27th Apr 2004 06:30 AM
VBA Syntax for VLOOKUP to return array of return values Alan Beban Microsoft Excel Programming 7 5th Aug 2003 11:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:24 PM.