problem vba dialoguebox and database in excel

  • Thread starter Thread starter Jean-Pierre
  • Start date Start date
J

Jean-Pierre

Hi,
I have the following problem:

I have a database spreadsheet (sheet 2) with in column A the names of
companies. Columns B - Z are all filled with characteristics of those
companies like adress, zipcode etc.

On another sheet (sheet1) i have several cells that need to be filled using
info from the database sheet.

I would like to create a dialogue box on which there is a drop down box
listing the companies in column A on the database sheet (in alphabetical
order). If the user has selected the company of his choice using the drop
down box, i would like to fill sheet1 with the info on the row of that
particular company.

Can somebody give me the VBA code to do this please ?

Thanks,
Pierre
 
Why not use data validation on the the subject sheet where the user picks
from a list of companies, then you could have vlookup formulas return the
appropriate values. Seems simpler and requires no code.
 

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