Ok...
I'm working on some code that requires user input. However, I want to provide them a list of 3-5 choices. I can easily get the code to work with an InputBox, but the macro actually goes and gets information from a DB. So, any mispellings, incorrect case, etc causes it to crash.
So, I've defined an array in my code called aMethod with an array of string values.
I know from reading the help, that inputbox allows the array type (64), but I can't find any examples on how to get it work....
So I have something like
strMethod = Application.Inputbox("Select Method", "Select a Method", 64)
But for the love of me, I can't figure out how to get that to use the aMethod array ...
Can someone give me a clue?
Thanks.
I'm working on some code that requires user input. However, I want to provide them a list of 3-5 choices. I can easily get the code to work with an InputBox, but the macro actually goes and gets information from a DB. So, any mispellings, incorrect case, etc causes it to crash.
So, I've defined an array in my code called aMethod with an array of string values.
I know from reading the help, that inputbox allows the array type (64), but I can't find any examples on how to get it work....
So I have something like
strMethod = Application.Inputbox("Select Method", "Select a Method", 64)
But for the love of me, I can't figure out how to get that to use the aMethod array ...
Can someone give me a clue?
Thanks.