JamworkS
Registered User.
- Local time
- Today, 15:55
- Joined
- Sep 1, 2011
- Messages
- 49
Hiya guys,
I'm trying to create a function for a project I'm working on, and want to make a "fool-proof" function. The way I want it, it's that there are gonna be two parameters, and both I would like them to be a list, so the user can't type anything they want, just select it from that list. The best exampl would be when you type msgbox and then the "dialog style" parameter drops down a list with "vbcritical", "vbinformation", etc ...
Is there any way to create that in a user defined function? I just want something like:
So, the other users would only have to select from a defined list, both parameters.
I hope I've made myself understood.
Cheers mates
.
I'm trying to create a function for a project I'm working on, and want to make a "fool-proof" function. The way I want it, it's that there are gonna be two parameters, and both I would like them to be a list, so the user can't type anything they want, just select it from that list. The best exampl would be when you type msgbox and then the "dialog style" parameter drops down a list with "vbcritical", "vbinformation", etc ...
Is there any way to create that in a user defined function? I just want something like:
Code:
Function myFoolFunction (A as List, B as List) 'I'm just simplifying here
End function
So, the other users would only have to select from a defined list, both parameters.
I hope I've made myself understood.
Cheers mates