Hi, I am using MSExcel 2000 VBA. What I am trying to do is something like this:
1. Use a inputbox to enter a number between 1 and 5
2. Based on the numerical entry, select the appropriate text data from the list and assign it to the txt variable.
Rough example:
dim txt as string
txt=inputbox("Enter a number between 1 & 5")
on txt = "one","two","three","four","five"
I can't remember how to do this or what it is called so I can search for it.
Thanks
1. Use a inputbox to enter a number between 1 and 5
2. Based on the numerical entry, select the appropriate text data from the list and assign it to the txt variable.
Rough example:
dim txt as string
txt=inputbox("Enter a number between 1 & 5")
on txt = "one","two","three","four","five"
I can't remember how to do this or what it is called so I can search for it.
Thanks