Referencing a Origin Cell from Data Validation
You're just looking for the address?
=if(b16="","","I"&match(b16,i6:i333,0)+row(i6)-1)
=if(b16="","","I"&match(b16,i6:i333,0)+5)
=match() will return the row (in the range) of the matching cell.
So if the match was in I6, =match() would return a 1 (first row of the range).
So we add 5 since we're starting in I6.
baconcow wrote:
I have a data validation list set up at "B16". The list goes from "I6" to
"I333".
If I select an item from the drop-down list, for example, "UNITABC", it will
appear in "B16". The value was taken from "I300", though.
How do I, with VBA, refer that cell? I want to be able to output what cell
("I300") that is currently selected in the data validation drop-down list.
Thanks
Shawn
--
Dave Peterson
|