Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTrace the information about share sessions Pin
Mekong River23-Jun-04 23:03
Mekong River23-Jun-04 23:03 
GeneralRe: Trace the information about share sessions Pin
Dave Kreskowiak24-Jun-04 2:35
mveDave Kreskowiak24-Jun-04 2:35 
GeneralRe: Trace the information about share sessions Pin
Mekong River24-Jun-04 5:57
Mekong River24-Jun-04 5:57 
GeneralRe: Trace the information about share sessions Pin
Dave Kreskowiak24-Jun-04 6:28
mveDave Kreskowiak24-Jun-04 6:28 
GeneralRe: Trace the information about share sessions Pin
Mekong River25-Jun-04 6:01
Mekong River25-Jun-04 6:01 
GeneralSystem date and time Pin
mythinky23-Jun-04 18:03
mythinky23-Jun-04 18:03 
GeneralRe: System date and time Pin
Dave Kreskowiak24-Jun-04 3:24
mveDave Kreskowiak24-Jun-04 3:24 
GeneralPermutations in Excel's Visual Basic Pin
jbreen723-Jun-04 16:56
jbreen723-Jun-04 16:56 
Hello All,

I need to create a macro in excel that determines all the possible unique permutations of a set of numbers. It is simple in concept but in my opinion it is not simple to code. Basically I want to do the following, the user enters the various number in seperate cells for the set(maximum number entered would be twelve), then enter the the maximum numbers to use in a squence from the set, i.e. determine all the pairs (2 numbers) within a set of three numbers. The program will then calculate all the unique permutations in the rows below (placing each number within a seperate cell within that row). Unique meaning that if 1,3 will appear then 3,1 would not since 1 and 3 are already combined.

Here is a simple visual of what I would like to do for the number of pairs within a set of three numbers.

Squence number (Choose a number 1 to 12 for the grouping):
Row 1 Cell 1: 2

Set of Numbers (Maximum of 12 Numbers):
Row 2 Cell 1 : 1 Row 2 Cell 2 : 2 Row 2 Cell 3 : 3

Program output should be the following:
Row 4 Cell 1 : 1 Row 4 Cell 2 : 2
Row 5 Cell 1 : 1 Row 5 Cell 2 : 3
Row 6 Cell 1 : 2 Row 6 Cell 2 : 3

I hope that this makes sense, but if anything needs clarification, please let me know. I hope you all can help me out. Thanks in advance for your help with this.


John Breen
GeneralRe: Permutations in Excel's Visual Basic Pin
Dave Kreskowiak24-Jun-04 2:43
mveDave Kreskowiak24-Jun-04 2:43 
GeneralRe: Permutations in Excel's Visual Basic Pin
tanstaafl2824-Jun-04 9:21
tanstaafl2824-Jun-04 9:21 
GeneralSave the value of a control Pin
Brad Fackrell23-Jun-04 10:53
Brad Fackrell23-Jun-04 10:53 
GeneralRe: Save the value of a control Pin
sivilian24-Jun-04 5:13
sivilian24-Jun-04 5:13 
GeneralVBA/Excel - Execute macro if comment inserted Pin
Jon G23-Jun-04 5:37
Jon G23-Jun-04 5:37 
GeneralRe: VBA/Excel - Execute macro if comment inserted Pin
Jon G23-Jun-04 6:33
Jon G23-Jun-04 6:33 
GeneralRe: VBA/Excel - Execute macro if comment inserted Pin
Mike Ellison23-Jun-04 6:56
Mike Ellison23-Jun-04 6:56 
GeneralNew Problem Pin
MarcMicalizzi23-Jun-04 5:08
MarcMicalizzi23-Jun-04 5:08 
GeneralRe: New Problem Pin
Dave Kreskowiak23-Jun-04 5:50
mveDave Kreskowiak23-Jun-04 5:50 
GeneralRe: New Problem Pin
Steven Campbell23-Jun-04 7:27
Steven Campbell23-Jun-04 7:27 
GeneralRe: New Problem Pin
Dave Kreskowiak23-Jun-04 8:37
mveDave Kreskowiak23-Jun-04 8:37 
GeneralDrag and drop between 2 listboxes Pin
Member 62023523-Jun-04 3:26
Member 62023523-Jun-04 3:26 
GeneralDrag and drop between 2 listboxes Pin
Member 62023523-Jun-04 3:26
Member 62023523-Jun-04 3:26 
Generalinterfacing scanner Pin
Saud AKhter22-Jun-04 23:37
Saud AKhter22-Jun-04 23:37 
GeneralRe: interfacing scanner Pin
Dave Kreskowiak23-Jun-04 3:36
mveDave Kreskowiak23-Jun-04 3:36 
GeneralVB6 to .Net User Controls Pin
mckly22-Jun-04 22:09
mckly22-Jun-04 22:09 
GeneralRe: VB6 to .Net User Controls Pin
Dave Kreskowiak23-Jun-04 3:30
mveDave Kreskowiak23-Jun-04 3:30 

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.