LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default RTD returning arrays

Steve,

you definitely cannot return an array directly, but you can use an "array
handle" (e.g. the topic ID) and a worksheet function to "explode" the
handle.

Jens.

--
http://ManagedXLL.net/
Replace MSDN with my first name when replying to my email address!



wrote in message
ups.com...
I'd like RTD to return an array of values from RefreshData(). This
article states that this CANNOT be done directly:
http://support.microsoft.com/kb/q286258/

Instead they recommend returning the array as a string with this format
{1, 2, 3, 4; 10, 20, 30, 40; 100, 200, 300, 400}, where columns are
delimited by commas and rows by semicolons.

The string formatted version of the array can then be passed to
Evaluate() which will parse the string and populate the cells.

However there is a limitation that restricts the string length passed
to Evaluate to 256 chars
(http://www.decisionmodels.com/calcsecretsh.htm). This seems pretty
severe as it keeps the array size uselessly small.

Is there a better way to return an array from RTD and have it displayed
in the spreadsheet?



 
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
Avg Arrays PAL Excel Worksheet Functions 2 February 13th 09 06:02 PM
two arrays Jerry Kinder New Users to Excel 4 February 26th 06 08:29 AM
Arrays Kenny Excel Programming 5 August 26th 04 09:47 AM
application.run for returning arrays levent Excel Programming 3 July 23rd 04 08:01 PM
Help with arrays please Gary[_18_] Excel Programming 6 June 27th 04 08:29 PM


All times are GMT +1. The time now is 08:28 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"