Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box problem


Just supposing I have 3 fields in columns A, B and C named Item,
Quantity and Price, I want to know how to get all of this data to
appear in a combo box. Does anybody know how to do this?

Then, if one record was selected from the combo box, I want this record
to be placed somewhere else on the spreadsheet e.g. to the right of the
combo box. Is there an easy way of doing this?

Thanks in advance.

James


--
run_PAFC
------------------------------------------------------------------------
run_PAFC's Profile: http://www.excelforum.com/member.php...o&userid=24673
View this thread: http://www.excelforum.com/showthread...hreadid=382565

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Combo box problem

I put a combobox from the Control toolbox toolbar on a worksheet.

While still in design mode, I assiged the listfillrange to A1:C10 (three
columns).

I also set the .columncount to 3

I made the linked cell D1.

I put this formula in E1:
=if(d1="","",vlookup(d1,$a$1:$c$10,2,false))
and in F1:
=if(d1="","",vlookup(d1,$a$1:$c$10,3,false))

This worked if column A had unique values.





run_PAFC wrote:

Just supposing I have 3 fields in columns A, B and C named Item,
Quantity and Price, I want to know how to get all of this data to
appear in a combo box. Does anybody know how to do this?

Then, if one record was selected from the combo box, I want this record
to be placed somewhere else on the spreadsheet e.g. to the right of the
combo box. Is there an easy way of doing this?

Thanks in advance.

James

--
run_PAFC
------------------------------------------------------------------------
run_PAFC's Profile: http://www.excelforum.com/member.php...o&userid=24673
View this thread: http://www.excelforum.com/showthread...hreadid=382565


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box problem


Dave,

Thank you for your reply. It works!

Many thanks.

James


--
run_PAFC
------------------------------------------------------------------------
run_PAFC's Profile: http://www.excelforum.com/member.php...o&userid=24673
View this thread: http://www.excelforum.com/showthread...hreadid=382565

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box problem


I am now puzzled as to why, what seems, exactly the same thing won't for
different data. I have 3 fields 'Part Number', 'Part description' and
'part price'. I want to shift the records in these fields to a
different area on the spreadsheet. I have all of the data in the combo
box and have created the lookups etc, however when I select a record
from the combo box 'part description' and 'part price' return with #N/A
where I want the correct values to be. Any suggestions as to why this
is occurring?

I have been puzzled all day so any help would be appreciated!

Thanks,
James


--
run_PAFC
------------------------------------------------------------------------
run_PAFC's Profile: http://www.excelforum.com/member.php...o&userid=24673
View this thread: http://www.excelforum.com/showthread...hreadid=382565

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Combo box problem

my bet is your formula is wrong.

Either it's using the wrong cell to look for--or it's using the wrong range as
the lookup table.



run_PAFC wrote:

I am now puzzled as to why, what seems, exactly the same thing won't for
different data. I have 3 fields 'Part Number', 'Part description' and
'part price'. I want to shift the records in these fields to a
different area on the spreadsheet. I have all of the data in the combo
box and have created the lookups etc, however when I select a record
from the combo box 'part description' and 'part price' return with #N/A
where I want the correct values to be. Any suggestions as to why this
is occurring?

I have been puzzled all day so any help would be appreciated!

Thanks,
James

--
run_PAFC
------------------------------------------------------------------------
run_PAFC's Profile: http://www.excelforum.com/member.php...o&userid=24673
View this thread: http://www.excelforum.com/showthread...hreadid=382565


--

Dave Peterson


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
Combo box problem R Ormerod Excel Discussion (Misc queries) 1 August 14th 07 01:12 PM
Combo box problem R Ormerod Excel Discussion (Misc queries) 3 August 13th 07 09:52 AM
Combo Box problem tmjhiphopcom Excel Discussion (Misc queries) 2 November 6th 05 05:30 PM
Combo problem again filo666 Excel Programming 1 April 18th 05 07:13 PM
combo box problem filo666 Excel Programming 4 April 18th 05 04:59 PM


All times are GMT +1. The time now is 12:04 PM.

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

About Us

"It's about Microsoft Excel"