Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default multiple list boxes

Hi,
I am making a UserForm with four list boxes so that the user will click
on an item from each box click OK and then a miricle happens!!
The UserForm shows up when a cell in column "A" has been changed.
how do I get the list boxes taged to the cells in the same row say
B,C,D,E for example purposes, so that whatever row I am on the info in
the listboxes will insert into the appropriate columns.?
Thanks alot, if anybody has an answer this will make the sheet so much
faster.
Dave

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default multiple list boxes

Dave,
Try using something like the following, assuming cell which
activates Userform is still "active" (selected):

Do you want to select ALL boxes BEFORE putting data into sheet? If so,
perhaps use a command button to initiate this.


....place in appropriate macro e.g Commandbutton1_click

myrow=Activecell.row


Cell(myrow,"B")=Textbox2.value
Cell(myrow,"C")=Textbox3.value


etc


"dmexcel" wrote:


Hi,
I am making a UserForm with four list boxes so that the user will click
on an item from each box click OK and then a miricle happens!!
The UserForm shows up when a cell in column "A" has been changed.
how do I get the list boxes taged to the cells in the same row say
B,C,D,E for example purposes, so that whatever row I am on the info in
the listboxes will insert into the appropriate columns.?
Thanks alot, if anybody has an answer this will make the sheet so much
faster.
Dave


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default multiple list boxes

Thanks for the reply,
I can't seem to get it working, why I don't know, I must be missing
something in the CommandButton

It tells me Sub or Function not defined

maybe I am populating the list box wrong, but when the UserForm pops up
the lists are correct!!
I had to change Textbox2.value to Listbox2.value but this doesn't seem
to change anything.
Dave

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
Data Consolidation w/ Multiple List Boxes Gayla Excel Worksheet Functions 2 April 2nd 07 07:44 PM
How do I create drop-down list boxes from multiple lists/headers HogLoRidr Excel Worksheet Functions 1 October 14th 06 04:04 AM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
List boxes/combo boxes Tibow Excel Programming 3 February 17th 04 12:35 PM


All times are GMT +1. The time now is 09:01 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"