Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default loop to add data in array

There is no support for that and since there isn't I would wonder why you
would want to do that

you can do an array of arrays

Sub AABB()
Dim wArray1, wArray
Dim i as long, j as long, k as long
ReDim wArray1(1 To 100)
ReDim wArray(1 To 100)
k = 0
For i = 1 To 100 Step 10
For j = 1 To 10
k = k + 1
wArray(k) = Application.Transpose(Cells(i, j).Resize(10, 1))
wArray1(k) = Cells(i, j).Resize(10, 1).Address
Debug.Print k, Cells(i, j).Resize(10, 1).Address
Next
Next

MsgBox wArray(3)(5)
End Sub

--
Regards,
Tom Ogilvy


"PST" wrote:

Hello

That is to say a table of 100 rows and 10 colums
A1:J100 With a loop I would like that:

line A1:A10 becomes W_1 array
the line b1:b10 becomes W_2 array
the line c1:c10 becomes W_3 array

etc for all the lines, with the corresponding data of each line


Thank you

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 200
Default loop to add data in array

PST wrote:
Hello

That is to say a table of 100 rows and 10 colums
A1:J100 With a loop I would like that:

line A1:A10 becomes W_1 array
the line b1:b10 becomes W_2 array
the line c1:c10 becomes W_3 array

etc for all the lines, with the corresponding data of each line


Thank you


I'm afraid I can't see what "etc" means. Is there a W_11 array?

Alan Beban
  #3   Report Post  
Posted to microsoft.public.excel.programming
PST PST is offline
external usenet poster
 
Posts: 29
Default loop to add data in array

Hello

That is to say a table of 100 rows and 10 colums
A1:J100 With a loop I would like that:

line A1:A10 becomes W_1 array
the line b1:b10 becomes W_2 array
the line c1:c10 becomes W_3 array

etc for all the lines, with the corresponding data of each line


Thank you
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 with a Loop Kevin O'Neill[_2_] Excel Programming 3 January 4th 06 06:40 PM
loop with array John Excel Programming 6 September 16th 05 02:15 PM
Using Loop to create Array davidm Excel Programming 4 June 15th 05 11:41 AM
Loop through array of worksheets Andibevan[_2_] Excel Programming 4 May 19th 05 11:49 AM
Help -- Loop or Array? How to identify? zSplash Excel Programming 2 November 12th 03 05:05 AM


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