I have a problem with my vba code that when I try to copy a value from a validation list, it copies the index of the selection from within that validation list.
What I want is the value that the user is trying to select and not the index.
How do I look up the abilities of the validation list? Do I used MSDN for Excel, the SDK for Excel? How does one do a search for these through those tools. I have tried using the MSDN but the links are taking me in circles.
Anyone have any advice? I want to know how to get to that value. I assumed I could use something like:
but it is also giving me the index in the same way that:
does.
Thanks in advance for any help.
EDIT: For example:
The validation list has Dogs at line one after it has been selected by the user.
But when I try to get that from the list with the above code I will get the index of 1. I want the actual text in that list and not it's index.
What I want is the value that the user is trying to select and not the index.
How do I look up the abilities of the validation list? Do I used MSDN for Excel, the SDK for Excel? How does one do a search for these through those tools. I have tried using the MSDN but the links are taking me in circles.
Anyone have any advice? I want to know how to get to that value. I assumed I could use something like:
Code:
Sh_2.Cells(nxtRwVar, 8) = Sh_1.Cells(11, 18).Value
Code:
Sh_2.Cells(nxtRwVar, 8) = Sh_1.Cells(11, 18)
Thanks in advance for any help.
EDIT: For example:
The validation list has Dogs at line one after it has been selected by the user.
But when I try to get that from the list with the above code I will get the index of 1. I want the actual text in that list and not it's index.
Last edited: