1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| Function Read_Array(Start, lenght, Index, Offsets, Table_Col_Count, _
Table_Row_Count, Tables_Top, Tables_Left, Espace, H_V As Boolean, Types As Boolean)
'Inserer le code de verif
Lenth = lenght - 1
ReDim TempArray(Lenth, 0)
If Types Then
SetAtrr = Tables_Top + (Espace + Table_Row_Count) * Index
If H_V Then
For indx = 0 To Lenth
TempArray(indx, 0) = Cells(SetAtrr + Start + indx, Tables_Left + Offsets)
Next indx
Else
For indx = 0 To Lenth
TempArray(indx, 0) = Cells(SetAtrr + Start, Tables_Left + Offsets + indx)
Next indx
End If
Else
SetAtrr = Tables_Left + (Espace + Table_Col_Count) * Index
If H_V Then
For indx = 0 To Lenth
TempArray(indx, 0) = Cells(Tables_Top + Offset + indx, SetAtrr + Start)
Next indx
Else
For indx = 0 To Lenth
TempArray(indx, 0) = Cells(Tables_Top + Offset, SetAtrr + Start + indx)
Next indx
End If
End If
Read_Array = TempArray
End Function |