Using Enum properly

What i want to accomplish is: When creating a sub with values being passed to it, i would like it to show a drop down list of posiblities, kinda like if i were to make a public enum then use that enum in the Private Sub MySub(enum). the problem is when calling it i have to type MySub enum.enumvalue. I only get a list of enums when i type the actual name of the enum followed by a period. Many built in methods of basic use something similar to the enum to show the programmer a list when calling that method but none make you type the name of the enum first then a period. they all work buy simply displaying a list of enums which the programmer can choose from. how can i replicate this same behavior? sorry i cant give more points i only have 19 left!

thanks,
Jaysor
JaysorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VbmasterCommented:
If your enum is called enummm then in the SUB declaration put

SUB somename(somevariable as enummm)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erick37Commented:
Enum E
    one
    two
    three
End Enum

Private Sub Form_Load()
S three 'List appears
End Sub

Private Sub S(en As E)
    Debug.Print en
End Sub
0
JaysorAuthor Commented:
since you were the first to answer you get the points.. thanks!

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.