S
shishi
Hi all,
I failed to figure this out. I am trying to go through about 300 rows
and generate some array of data.I am not interested in all the rows.
Say, I am interested in around 100 rows. Based on some condition I
select these 100 rows and transpose them and save them to a varaible
for further processing. I am doing this in a loop. I wish generate the
variable names, declare them and assign them a value. All these I need
to do in a loop. Could u please suggest..Thanks to all in advance..
Dim DutArray as Varaint
Dim I as Integer
Dim mCell as Range
For I = 1 To 300
Set mCell =
ThisWorkbook.Sheets("SPECS").Range("START_SPEC").Offset(I, 1)
DutArray = Application.Transpose(Range(mCell,
mCell.End(xlToRight)))
If DutArray(3, 1) = 1 Then
GoTo PROCESSDUT
End If
If DutArray(2, 1) = 1 Then
Here I wish to save the DutArray on to a new variable..
like DUT1, DUT2, DUT3, DUT4 etc...
How can I declare these variables here and then assign some value to
it.?
something like
set "DUT" & I = DutArray
End If
Next
shishi
I failed to figure this out. I am trying to go through about 300 rows
and generate some array of data.I am not interested in all the rows.
Say, I am interested in around 100 rows. Based on some condition I
select these 100 rows and transpose them and save them to a varaible
for further processing. I am doing this in a loop. I wish generate the
variable names, declare them and assign them a value. All these I need
to do in a loop. Could u please suggest..Thanks to all in advance..
Dim DutArray as Varaint
Dim I as Integer
Dim mCell as Range
For I = 1 To 300
Set mCell =
ThisWorkbook.Sheets("SPECS").Range("START_SPEC").Offset(I, 1)
DutArray = Application.Transpose(Range(mCell,
mCell.End(xlToRight)))
If DutArray(3, 1) = 1 Then
GoTo PROCESSDUT
End If
If DutArray(2, 1) = 1 Then
Here I wish to save the DutArray on to a new variable..
like DUT1, DUT2, DUT3, DUT4 etc...
How can I declare these variables here and then assign some value to
it.?
something like
set "DUT" & I = DutArray
End If
Next
shishi