Drop Down Box & Macro

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

Guest

Hello,
I want to create a macro so that when I select a country from a drop down
box, then hidden data for the country appears. For example, I select
Argentina from the box, then data will appear on the population, econmic
info., etc. However, I can then choose Mexico from the box and the same data
appears for Mexico.

Thanks in advance.
 
Hi Dave,
I forgot to mention, that there is a catch. The reason I say I need a
macro is that I want the data to be changeable & not from a list. Example:

My Drop Down Box has countries from A-Z. The categories are population, and
let's say internet penetration. Now, when I select Brazil, I input the
population and internet penetration, after I do that, then I go back to the
drop-down box and select China and input data for China. And I want to be
able to do this for whichever country I choose. Any ideas?
 
I think I would separate the functions into two pieces.

One would be updating the table. I'd do it directly in the second sheet. But
maybe you'd rather use Data|Form. And since the table is resizing, you could
use a dynamic name for the data|validation cell.

See Debra Dalgeish's site for some nice tips:
http://contextures.com/xlNames01.html#Dynamic

Then the second part would be using the =vlookup() formulas.
 

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

Back
Top