Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default problem vba dialoguebox and database in excel

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default problem vba dialoguebox and database in excel

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.

--
Regards,
Tom Ogilvy


"Jean-Pierre" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delicate Excel-database problem khers Excel Discussion (Misc queries) 2 August 12th 09 10:55 PM
retrieve data from spreadsheet using combobox in dialoguebox Jean-Pierre D via OfficeKB.com[_2_] Excel Programming 0 September 28th 05 08:51 AM
problem about sending data in Excel to an Access database IgelSitter Excel Programming 0 July 25th 05 07:22 AM
Excel function to search and access database problem Brian K. Sheperd Excel Programming 0 April 20th 05 08:42 PM
MS Access Database Connection problem in Excel XP 2002 Sarwat Malik Excel Programming 1 July 16th 04 01:22 PM


All times are GMT +1. The time now is 12:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"