Click here to Skip to main content
16,008,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDrop Excel into OLE object (Access/VBA) Pin
john john mackey2-Feb-05 9:20
john john mackey2-Feb-05 9:20 
GeneralRe: Drop Excel into OLE object (Access/VBA) Pin
john john mackey2-Feb-05 9:26
john john mackey2-Feb-05 9:26 
GeneralRegistry - Qword Pin
Anonymous2-Feb-05 7:31
Anonymous2-Feb-05 7:31 
GeneralRe: Registry - Qword Pin
Dave Kreskowiak2-Feb-05 10:36
mveDave Kreskowiak2-Feb-05 10:36 
GeneralRe: Registry - Qword Pin
Dave Kreskowiak2-Feb-05 15:04
mveDave Kreskowiak2-Feb-05 15:04 
GeneralRe: Registry - Qword Pin
Anonymous3-Feb-05 12:32
Anonymous3-Feb-05 12:32 
GeneralRaiseEvent not triggerd Pin
DSLR2-Feb-05 5:14
DSLR2-Feb-05 5:14 
Questionhow to realice permutations in a VBA Programm Pin
Stephan Wright2-Feb-05 4:19
Stephan Wright2-Feb-05 4:19 
hy everyone

I do want to realice a kind of permutation in a VBA programm

Lets say I do have the three integer pairs "100 - 120", "200 - 220" and "300 - 320".

Now I would like to let my programm select every possible permution of them, meaning the lowerone of the first, the lower one of the second and the lowerone of the third.

Let me describe with a set of two pairs.
Lets say I do have the pairs "1 - 2" and "3 - 4" so my proggy should allow to access every permution, either for output or for furter use.

Well I will have to get "1 3" "1 4" "2 3" and "2 4".
This should work for every amount of pairs available. Lets say 16 or 20 pairs with a lower and higher number.

I thought about an inner and outer loop but this way I was not able to get all the permutations.

Does anyone of you know how to realice that.

Thanks!
Stephan.
AnswerRe: how to realice permutations in a VBA Programm Pin
Stephan Wright2-Feb-05 21:38
Stephan Wright2-Feb-05 21:38 
Generalmoving between forms Pin
fo0lish2-Feb-05 3:24
fo0lish2-Feb-05 3:24 
GeneralRe: moving between forms Pin
padvit2-Feb-05 18:30
padvit2-Feb-05 18:30 
Generalstringparsing Pin
Stephan Wright2-Feb-05 2:42
Stephan Wright2-Feb-05 2:42 
GeneralRe: stringparsing Pin
Stephan Wright2-Feb-05 3:06
Stephan Wright2-Feb-05 3:06 
GeneralRe: stringparsing Pin
Scott Serl2-Feb-05 10:02
Scott Serl2-Feb-05 10:02 
GeneralRe: stringparsing Pin
Stephan Wright2-Feb-05 21:02
Stephan Wright2-Feb-05 21:02 
GeneralRe: stringparsing Pin
Scott Serl3-Feb-05 9:14
Scott Serl3-Feb-05 9:14 
GeneralRe: stringparsing Pin
Gavin Jeffrey2-Feb-05 3:17
Gavin Jeffrey2-Feb-05 3:17 
GeneralRe: stringparsing Pin
The Man from U.N.C.L.E.2-Feb-05 3:37
The Man from U.N.C.L.E.2-Feb-05 3:37 
GeneralJoining Tables in seperate databases Pin
Just Greeky Creek2-Feb-05 2:27
Just Greeky Creek2-Feb-05 2:27 
GeneralRe: Joining Tables in seperate databases Pin
The Man from U.N.C.L.E.2-Feb-05 3:39
The Man from U.N.C.L.E.2-Feb-05 3:39 
GeneralRe: Joining Tables in seperate databases Pin
Just Greeky Creek2-Feb-05 4:04
Just Greeky Creek2-Feb-05 4:04 
GeneralRTD (real Time Data) problem Pin
aswanee2-Feb-05 2:08
aswanee2-Feb-05 2:08 
GeneralRe: RTD (real Time Data) problem Pin
Dave Kreskowiak2-Feb-05 4:08
mveDave Kreskowiak2-Feb-05 4:08 
GeneralLoading a Windows Forms Usercontrol in VB6 Pin
stensmith2-Feb-05 0:58
stensmith2-Feb-05 0:58 
GeneralOledb provider for foxpro Pin
ssskkk2-Feb-05 0:50
ssskkk2-Feb-05 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.