Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 166
Default Filling an Array


Dim a(4,2)

Is there any way to implement

a(0 to 4,0) = Split ("22,33,44,55,66",",")
a(0 to 4,1) = Split etc etc.

Or must each array element be assigned individually?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Filling an Array

a = array(split("1 2 3"),split("1 2 3 4")): ?a(1)(3)

maybe? (returns 4 from the immediate window)

"kirkm" wrote:


Dim a(4,2)

Is there any way to implement

a(0 to 4,0) = Split ("22,33,44,55,66",",")
a(0 to 4,1) = Split etc etc.

Or must each array element be assigned individually?

Thanks - Kirk

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 166
Default Filling an Array

On Mon, 18 May 2009 20:59:02 -0700, Lori
wrote:

a = array(split("1 2 3"),split("1 2 3 4")): ?a(1)(3)

maybe? (returns 4 from the immediate window)


Thanks Lori, I'd forgotten about Array.Opens up
some nice possibilites.

Cheers - Kirk
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
Filling an Array Quickly Bill Martin[_3_] Excel Programming 13 May 1st 09 02:47 PM
Filling an array with ranges Greg Excel Programming 1 November 12th 07 09:24 PM
Filling an array with a Loop Kevin O'Neill[_2_] Excel Programming 3 January 4th 06 06:40 PM
filling a form with an array JT Excel Programming 1 October 26th 05 04:11 PM
Filling an array with data Dongle Excel Worksheet Functions 2 May 18th 05 06:06 PM


All times are GMT +1. The time now is 05:28 PM.

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"