vba code for validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a range of cells in sheet1 that i need have validation from a list in
sheet2.
what vba code could i write to have a drop down list?
 
Turn on the macro recorder and do it manually. See what code you get. That
will be a start and will be directly applicable to you situation.
 
Name the range in sheet 2

in sheet1 select the cells and then select data>>validation>>"allow"--list

in the "source" textbox type
=yourRangeName

Tim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top