Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can a C# plugin return array to Excel? or set Range values?

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel MSN Money Stock Quote plugin should return Dividend Info. SexBomb Excel Programming 0 July 7th 06 06:26 PM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
Put values into excel range from single dimension array [email protected] Excel Programming 2 February 25th 06 04:33 AM
Return an array of values from a function Raul Excel Programming 6 December 13th 04 07:33 PM
VBA Syntax for VLOOKUP to return array of return values Alan Beban[_3_] Excel Programming 7 August 5th 03 11:41 AM


All times are GMT +1. The time now is 10:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"