Magic esquire 3x3

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,422
Office Version
  1. 2010
Hello,

Is it possible to create all possible magic esquire 3x3 which total must be 14 using 0 to 8 numbers? Numbers can be used repeated

Like example shown below...


Book1
ABCDEF
1
2
30312
41021
52032
63
74521
85203
96010
107
118321
12114
13101
14
15320
16122
17013
18
19310
20151
21120
22
23521
24003
25012
26
27221
28322
29110
30
31322
32211
33012
34
35421
36001
37231
38
39160
40222
41100
42
43013
44113
45122
46
47122
48111
49123
50
51212
52112
53131
54
55621
56301
57001
58
59
Sheet2


Thank you all
Excel 2000
Regards,
Moti
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello, Please ignore posrt#1

I think not to complicate making esquires could be made all possible set using 0 to 8 numbers, could be repeated, which line total must be 14

New example


Book1
ABCDEFGHIJKLMN
1
2Sum
3031202103214
4152120301014
5232111410114
6332012201314
7431015112014
8552100301214
9622132211014
10732221101214
11842100123114
1216022210014
1301311312214
1412211112314
1521211213114
1662130100114
17
18
19
20
21
22
23
24
25
26
27
28
Sheet3


Thank you
Regards
Moti
 
Upvote 0
have 9 loops all going from 0 to 8 and after each loop check total
if equal to 14 make remaining numbers zero
if greater than 14 ignore and update PREVIOUS loop

ie
for A= 0 to 8
for B=0 to 8 etc etc
 
Upvote 0
have 9 loops all going from 0 to 8 and after each loop check total
if equal to 14 make remaining numbers zero
if greater than 14 ignore and update PREVIOUS loop

ie
for A= 0 to 8
for B=0 to 8 etc etc
Hello oldbrewer,
May be like shown below 1st set 0,0,0,0,0,0,0,6,8 & last one 8,6,0,0,0,0,0,0,0

Example.


Book1
ABCDEFGHIJKLMN
1
2Sum
3000000006814
4100000060814
5200000600814
6300006000814
7400060000814
8500600000814
9606000000814
10760000000814
11800000007714
1200000070714
1300000700714
1400007000714
1500070000714
1686000000014
17
18
19
20
21
22
23
24
25
26
27
28
Sheet4


Thank you
Regards
Mot
 
Upvote 0
yes - there will be a lot of answers......do you need them all or say just 100 ?
Hello oldbrewer,
Do you know how much could be all? i have no idea how to calculate them

Is it possible to at have all, if not could be 100 random as you can

Thank you
Regards
Moti
 
Upvote 0
Code:
Sub moti()
  Const m           As Long = 9
  Dim i             As Long
  Dim n             As Long
  Dim aiInx(1 To 9) As Long
  Dim aiMin(1 To 9) As Long
  Dim aiMax(1 To 9) As Long
  Dim aiOut(1 To 308187, 1 To 9) As Long
  Dim iSum          As Long

  For i = 1 To m
    aiMax(i) = 8
  Next i

  NestedFor aiInx, aiMin, aiMax, True

  Do While NestedFor(aiInx, aiMin, aiMax)
    iSum = 0
    For i = 1 To m
      iSum = iSum + aiInx(i)
      If iSum > 14 Then Exit For
    Next i

    If iSum = 14 Then
      n = n + 1

      For i = 1 To 9
        aiOut(n, i) = aiInx(i)
      Next i

      If (n And &H3FF&) = 0& Then
        Application.StatusBar = Format(n, "#,##0")
        DoEvents
      End If
    End If
  Loop

  Range("A1").Resize(UBound(aiOut, 1), UBound(aiOut, 2)).Value = aiOut
  Application.StatusBar = False
End Sub

Function NestedFor(aiInx() As Long, aiMin() As Long, aiMax() As Long, _
                   Optional bInit As Boolean = False) As Boolean
  ' shg 2007

  ' Changes array aiInx to the next iteration, varying aiInx between the values
  ' in aiMin and aiMax. The three arrays must all be 1-based and the same size.

  ' aiInx(m) is the innermost loop

  ' To initialize aiInx so that the *next* call returns the first iteration,
  ' call with bInit True.

  ' Init returns           {aiMin(1), aiMin(2), ..., aiMin(m) - 1}
  ' The first iteration is {aiMin(1), aiMin(2), ..., aiMin(m)}
  ' The last is            {aiMax(1), aiMax(2), ..., aiMax(m)}

  ' Returns False when no more iterations exist

  Dim i             As Long
  Dim m             As Long

  m = UBound(aiInx)

  If bInit Then
    For i = 1 To m - 1
      aiInx(i) = aiMin(i)
    Next i
    aiInx(m) = aiMin(i) - 1
    NestedFor = True

  Else
    For i = m To 1 Step -1
      If aiInx(i) < aiMax(i) Then
        aiInx(i) = aiInx(i) + 1
        Exit For
      End If
      aiInx(i) = aiMin(i)
    Next i
    NestedFor = i > 0
  End If
End Function

Pretty boring parade:

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][td="bgcolor:#C0C0C0"]
G​
[/td][td="bgcolor:#C0C0C0"]
H​
[/td][td="bgcolor:#C0C0C0"]
I​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
6​
[/td][td]
8​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
7​
[/td][td]
7​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
8​
[/td][td]
6​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
5​
[/td][td]
8​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
6​
[/td][td]
7​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
7​
[/td][td]
6​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
8​
[/td][td]
5​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
2​
[/td][td]
4​
[/td][td]
8​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
9​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
2​
[/td][td]
5​
[/td][td]
7​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
10​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
2​
[/td][td]
6​
[/td][td]
6​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
11​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
2​
[/td][td]
7​
[/td][td]
5​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308179​
[/td][td]
8​
[/td][td]
4​
[/td][td]
2​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308180​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308181​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308182​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308183​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308184​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
0​
[/td][td]
1​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308185​
[/td][td]
8​
[/td][td]
5​
[/td][td]
0​
[/td][td]
1​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308186​
[/td][td]
8​
[/td][td]
5​
[/td][td]
1​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
308187​
[/td][td]
8​
[/td][td]
6​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][td]
0​
[/td][/tr]
[/table]
 
Upvote 0
Code:
Sub moti()
  Const m           As Long = 9
  Dim i             As Long
  Dim n             As Long
  Dim aiInx(1 To 9) As Long
  Dim aiMin(1 To 9) As Long
  Dim aiMax(1 To 9) As Long
  Dim aiOut(1 To 308187, 1 To 9) As Long
  Dim iSum          As Long

  For i = 1 To m
    aiMax(i) = 8
  Next i

  NestedFor aiInx, aiMin, aiMax, True

  Do While NestedFor(aiInx, aiMin, aiMax)
    iSum = 0
    For i = 1 To m
      iSum = iSum + aiInx(i)
      If iSum > 14 Then Exit For
    Next i

    If iSum = 14 Then
      n = n + 1

      For i = 1 To 9
        aiOut(n, i) = aiInx(i)
      Next i

      If (n And &H3FF&) = 0& Then
        Application.StatusBar = Format(n, "#,##0")
        DoEvents
      End If
    End If
  Loop

  Range("A1").Resize(UBound(aiOut, 1), UBound(aiOut, 2)).Value = aiOut
  Application.StatusBar = False
End Sub

Function NestedFor(aiInx() As Long, aiMin() As Long, aiMax() As Long, _
                   Optional bInit As Boolean = False) As Boolean
  ' shg 2007

  ' Changes array aiInx to the next iteration, varying aiInx between the values
  ' in aiMin and aiMax. The three arrays must all be 1-based and the same size.

  ' aiInx(m) is the innermost loop

  ' To initialize aiInx so that the *next* call returns the first iteration,
  ' call with bInit True.

  ' Init returns           {aiMin(1), aiMin(2), ..., aiMin(m) - 1}
  ' The first iteration is {aiMin(1), aiMin(2), ..., aiMin(m)}
  ' The last is            {aiMax(1), aiMax(2), ..., aiMax(m)}

  ' Returns False when no more iterations exist

  Dim i             As Long
  Dim m             As Long

  m = UBound(aiInx)

  If bInit Then
    For i = 1 To m - 1
      aiInx(i) = aiMin(i)
    Next i
    aiInx(m) = aiMin(i) - 1
    NestedFor = True

  Else
    For i = m To 1 Step -1
      If aiInx(i) < aiMax(i) Then
        aiInx(i) = aiInx(i) + 1
        Exit For
      End If
      aiInx(i) = aiMin(i)
    Next i
    NestedFor = i > 0
  End If
End Function

Pretty boring parade:

[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
A​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
B​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
C​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
D​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
E​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
F​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
G​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
H​
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
I​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
6​
[/TD]
[TD]
8​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
2​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
7​
[/TD]
[TD]
7​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
3​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
8​
[/TD]
[TD]
6​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
4​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
5​
[/TD]
[TD]
8​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
6​
[/TD]
[TD]
7​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
6​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
7​
[/TD]
[TD]
6​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
7​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
8​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
2​
[/TD]
[TD]
4​
[/TD]
[TD]
8​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
9​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
2​
[/TD]
[TD]
5​
[/TD]
[TD]
7​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
10​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
2​
[/TD]
[TD]
6​
[/TD]
[TD]
6​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
11​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
2​
[/TD]
[TD]
7​
[/TD]
[TD]
5​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308179​
[/TD]
[TD]
8​
[/TD]
[TD]
4​
[/TD]
[TD]
2​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308180​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308181​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308182​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308183​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308184​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308185​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308186​
[/TD]
[TD]
8​
[/TD]
[TD]
5​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C0C0C0]#C0C0C0[/URL] "]
308187​
[/TD]
[TD]
8​
[/TD]
[TD]
6​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
</tbody>[/TABLE]
shg, thank you so much, code seems to work but it stop at the line below, because I have max 65000 lines, may it need alteration to continue in the next columns, Please does it is possible?

Code:
 Range("A1").Resize(UBound(aiOut, 1), UBound(aiOut, 2)).Value = aiOut

Thank you
Regards
Moti
 
Upvote 0
shg, thank you so much, code seems to work but it stop at the line below, because I have max 65000 lines, may it need alteration to continue in the next columns, Please does it is possible?

Code:
 Range("A1").Resize(UBound(aiOut, 1), UBound(aiOut, 2)).Value = aiOut

Thank you
Regards
Moti
Hello,

Code stop at the line above and do not show any results, it is due to my version 2000 has line limits 65336, and total set are 308187, please require modification after 65000 rows continue generating in the next sheet or next columns in the same sheet.

Thank you

Regards
Moti
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top