Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Input two cells with one selection

Hi,

I have an Access database with a form that has an entry with a drop down
list attached to it. The list has two columns in it. When you select
one of the options from the list it populates one field with the first
column and another field with the second.

Is there a way in Excel to do the same thing?

I have the two columns set up as a range already, but can't get it to work.

Any suggestions?

Thanks

Keith
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Input two cells with one selection

maybe this...

check out these properties of a combo:
..ColumnCount = 'int value
..BoundColumn = 'int value



Hi,

I have an Access database with a form that has an entry with a drop down
list attached to it. The list has two columns in it. When you select one
of the options from the list it populates one field with the first column
and another field with the second.

Is there a way in Excel to do the same thing?

I have the two columns set up as a range already, but can't get it to
work.

Any suggestions?

Thanks

Keith


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Input two cells with one selection

Sigh,

this sounds like bad database design, but here we go..

First pls provide additional info.

Do you want to edit on the sheet or use a userform like in Access?

DM Unseen

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Input two cells with one selection

Private Sub Combobox1_Click()
Range("A1").Value = Combobox1.List(Combobox1.ListIndex,0)
Range("A1").Offset(0,1).Value = Combobox1.List(Combobox1.ListIndex,1)
End Sub

--
Regards,
Tom Ogilvy


"Keith" wrote in message
...
Hi,

I have an Access database with a form that has an entry with a drop down
list attached to it. The list has two columns in it. When you select
one of the options from the list it populates one field with the first
column and another field with the second.

Is there a way in Excel to do the same thing?

I have the two columns set up as a range already, but can't get it to

work.

Any suggestions?

Thanks

Keith



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Input two cells with one selection

Keith,

Do you want to edit the sheet or create a userform
BTW this sounds like a dependent column, which is bad database design.

DM Unseen



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
Input selection choices ARGT Excel Discussion (Misc queries) 4 July 8th 08 03:59 AM
Setting of input cells as blue font and formula cells as black fon Sunnyskies Excel Discussion (Misc queries) 2 May 14th 07 05:27 PM
Skip cells with TAB/SHIFT+TAB but allow arrow keys/mouse selection of skipped cells Wescotte Excel Programming 1 June 6th 05 07:00 PM
Macro to change list box input range based on selection made in another cell Sue[_6_] Excel Programming 3 October 7th 04 06:45 PM
Input box does not allow selection in another file Tom Ogilvy Excel Programming 2 August 26th 04 04:53 AM


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

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"