Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Folks,
I found this code doing a Google search and thought I'd give it a try. Unfortunately, I get a compile error but I am not much good when it comes to VBA. Dim combo As String numbers = Array(1, 2, 3, 4) 'enter numbers played here For i = 0 To 3 For j = 0 To 3 For k = 0 To 3 For l = 0 To 3 If Not ((j = i) Or (k = j Or k = i) Or (L = k Or L = j Or L = i)) Then combo = numbers(i) & numbers(j) & numbers(k) & numbers(l) ActiveCell = combo ActiveCell.Offset(1, 0).Select End If Next l Next k Next j Next i End Sub The error flags If Not ... Then Any ideas? Thanks! Biff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Solver - error - Compile Error | Excel Discussion (Misc queries) | |||
help with this error-Compile error: cant find project or library | Excel Discussion (Misc queries) | |||
VBA Error Message "Compile Error...." | Excel Discussion (Misc queries) | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |