Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA - Lookup a value from a cell derived from data validation 1

Status
Not open for further replies.

guyKn

Technical User
Sep 25, 2003
22
GB
I have an excel cell whos value is determined from a list defined by using 'data validation option' in excel.

I want to write a macro that uses each value in the list so I can see the results.

Help would be appreciated!

 
Lets assume the list that provides the data validation is called 'myList' and the cell to be validated is called 'dvCell'

This should get you going:

for each c in [myList]
msgbox "The next value to be entered will be: " & c.value
[dvCell] = c.value
next c


Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top