Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Drop down list and macros?

Hi,

Ok, this is a bit of a puzzle to me. I can't figure out how to do it.

I have a "database" file on sheet 2. The database various informations
about different golf courses. The drop down list entries are the entries
in coloumn A. The informations about each golf course are located in the
row corresponding to the list entry. Eg.

Course 1 Par Hole information etc
Course 2 Par Hole information etc
Course 3 Par Hole information etc


The drop down list is placed on sheet 1. What I want is to have Excel
copy the course informations (Par and Hole information etc) into certain
cells on sheet 1 when the course is selected from the drop down list. So
if I choose Course 3, I would have the informations about Course 3
written in certain cells on sheet 1.

How to I do this?

I have the drop down list (made using the Data Validation menu) and my
course database. I just need to have the data copied.

I figured that it needed to be done using a macro, but I can't figure
out how to write that macro (can't really figure out the code) and I
can't assign a macro to the drop down list.

A solution could of course be to insert a button besides the drop down
list and then assign the macro (which I still don't have) to the button.

Maybe someone could help me out? :-)

Anders
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Drop down list and macros?

Anders -

For the fields you want to populate with information, you can use a VLOOKUP
into your "database" file using the value of the cell with the drop-list.
You would want to code the field to be blank if the cell with the drop-list
is empty.

--
Daryl S


"Anders" wrote:

Hi,

Ok, this is a bit of a puzzle to me. I can't figure out how to do it.

I have a "database" file on sheet 2. The database various informations
about different golf courses. The drop down list entries are the entries
in coloumn A. The informations about each golf course are located in the
row corresponding to the list entry. Eg.

Course 1 Par Hole information etc
Course 2 Par Hole information etc
Course 3 Par Hole information etc


The drop down list is placed on sheet 1. What I want is to have Excel
copy the course informations (Par and Hole information etc) into certain
cells on sheet 1 when the course is selected from the drop down list. So
if I choose Course 3, I would have the informations about Course 3
written in certain cells on sheet 1.

How to I do this?

I have the drop down list (made using the Data Validation menu) and my
course database. I just need to have the data copied.

I figured that it needed to be done using a macro, but I can't figure
out how to write that macro (can't really figure out the code) and I
can't assign a macro to the drop down list.

A solution could of course be to insert a button besides the drop down
list and then assign the macro (which I still don't have) to the button.

Maybe someone could help me out? :-)

Anders
.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Drop down list and macros?

Daryl S skrev:
Anders -

For the fields you want to populate with information, you can use a VLOOKUP
into your "database" file using the value of the cell with the drop-list.
You would want to code the field to be blank if the cell with the drop-list
is empty.


Thanx, that was just the function I needed!

Anders
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
Yes no drop down list and macros Larry Fitch Excel Discussion (Misc queries) 4 November 19th 09 04:40 PM
Create Drop Down List of Macros Youlan Excel Discussion (Misc queries) 2 October 23rd 09 11:34 PM
ASSIG MACROS TO DROP DOWN LIST CaOrAl Excel Discussion (Misc queries) 7 January 6th 07 11:28 AM
Delete key not enabled on macros drop down list carol49 Excel Discussion (Misc queries) 3 August 27th 06 08:43 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 10:17 PM.

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"