+ Reply to Thread
Results 1 to 2 of 2

Values in a Listbox onto a new row

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2010
    Posts
    3

    Values in a Listbox onto a new row

    Hi,

    I'm fairly new to Excel VB. I have a userform and I want the user to input values into 3 boxes press an add button and then it adds it to a Listbox.

    This is working fine for 1 line of data, but when I try to put a 2nd line of data it overwrites the first.

    Here is the code I have at the moment:

    Please Login or Register  to view this content.
    Can anybody help me with this.

    Thanks
    Last edited by Fotis1991; 09-13-2013 at 06:50 AM. Reason: added code tags

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Values in a Listbox onto a new row

    Welcome to the forum

    Pls

    Use code tags around code.

    Posting code between
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] excel vba filter values to listbox from combobox and save edit values in textbox
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 08:42 AM
  2. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  3. Listbox of Values
    By bblesse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2012, 04:17 AM
  4. Userform's listbox values depending on values on certain matrix
    By Juhanen II in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-19-2008, 08:01 AM
  5. [SOLVED] Fill values into a listbox matching selected values from a combobox
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2005, 01:06 PM

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.6.0 RC 1