Hello everybody, first of all I have only taken one semester of Visual Basic at my high school so I am a beginner, and I am using Visual Basic 6.0.

I am trying to build a program that will do this: Generate a key which is set up like this:

XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

But, the hard part is here. Let X represent letters (without vowels) and 1 represent numbers 1-9.

When the command button is clicked I need a random key to be presented like this:

XX1XX-1XXXX-XX1XX-XXXX1-11XXX

There is about 20 different combinations of "XX1XX" and they will need to be randomly put into the code with random letters in the X spaces and random numbers in the 1 spaces.

It's pretty complicated to explain, so post any questions you have.