I need to generate combinations of 3 , 3 digit numbers where each digit (1 thru 9) only appears ONE time so the first seq would be 123, 456, 789 , then 134, 567, 892 or something

here is the code I THOUGHT would work but it doesn’t not even close

```
For i1=123 To 987
n1=Format(i1,"000")
For i2=i1+1 To 987
n2=Format(i2,"000")
For i3=i2+1 To 987
n3=Format(i3,"000")
For j=1 To 3
xx=Mid(n1,j,1)
If InStr(n2,xx)>0 Or InStr(n3,xx)>0 Then Continue
xx=Mid(n2,j,1)
If InStr(n3,xx)>0 Then Continue
tt=i1+i2+i3
txt.writeline Format(tt,"000000")+"|"+n1+"|"+n2+"|"+n3
Next j
Next i3
Next i2
Next i1
```