+ Reply to Thread
Results 1 to 3 of 3

Thread: multiple list boxes

  1. #1
    dmexcel
    Guest

    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. #2
    Toppers
    Guest

    RE: 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. #3
    dmexcel
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0