Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Return string array from function in excel 97

Hi all,

Is there a way to return a string array from a function instead of a
variant.
I can return a string array from a function in excel 2000 but in 97
gives me a syntax error.

The following show the definition of my function:

Function SortCollection(ByRef collObject As clcRckColl, ByVal
blnSortRacks As Boolean,ByVal blnSortSlots As Boolean, Optional ByVal
strRackNUm As String) As String()

In particular in 97 doesn't like the last parentheses as string()

Do i have to declare it as Variant and remove the parentheses to make
this macro work for all excel versions?

Any help/suggestions will be appreciated.


Thanks,
Stelio
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Return string array from function in excel 97

Fine in 2000 or later, don't recall if it works in '97


-----Original Message-----
Hi all,

Is there a way to return a string array from a function

instead of a
variant.
I can return a string array from a function in excel

2000 but in 97
gives me a syntax error.

The following show the definition of my function:

Function SortCollection(ByRef collObject As clcRckColl,

ByVal
blnSortRacks As Boolean,ByVal blnSortSlots As Boolean,

Optional ByVal
strRackNUm As String) As String()

In particular in 97 doesn't like the last parentheses

as string()

Do i have to declare it as Variant and remove the

parentheses to make
this macro work for all excel versions?

Any help/suggestions will be appreciated.


Thanks,
Stelio
.

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 function;find string in entire column & return cell referenc Audit Compliance Man Excel Worksheet Functions 2 April 21st 23 10:24 AM
Reverse a function to return the array? bc4240 Excel Worksheet Functions 4 July 31st 09 05:25 AM
Can the Excel RTD function return an array (It does on Bloomberg) Jonathan10 Excel Worksheet Functions 0 April 25th 08 09:48 AM
Which Function to Use? Search an Array, Return a Row Value [email protected] Excel Discussion (Misc queries) 1 August 24th 07 06:34 PM
Return array from worksheet function Steve Lloyd Excel Worksheet Functions 4 July 19th 06 06:15 PM


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

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

About Us

"It's about Microsoft Excel"