+ Reply to Thread
Results 1 to 4 of 4

Populating text to a textbox from a listbox multiline in sequence.

  1. #1
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Populating text to a textbox from a listbox multiline in sequence.

    Hi

    I have an issue with a listbox filling a textbox with sequential text, I will explain.

    I have a listbox "lstitems" and a textbox "Desc.text" The code below is to copy text from the listbox to the textbox in order, lets say i have 10 rows of text in the list box, when i click on a row it populates into the textbox, i would then choose another row and it then will follow the previous, that works fine, what i am trying to do is start a new line in the textbox to start another paragraph, when i hit ctrl+enter it moves down to start another line but when i click on text within the listbox the text populates back to the previous position.

    I have attached a sample file.
    Attached Files Attached Files
    Last edited by molesy; 05-15-2014 at 06:54 AM.

  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: Populating text to a textbox from a listbox multiline in sequence.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] 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



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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.

  3. #3
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Populating text to a textbox from a listbox multiline in sequence.

    dont know what you mean there is no red # at the top of the post

  4. #4
    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: Populating text to a textbox from a listbox multiline in sequence.

    i mean that you must read the forum rules before post.

    The sign # is not red. I bold and coloured it red to show you which is the sign to use for adding code tags.

+ 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. Populating userform listbox from sheet cell with multiline text
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 07:44 AM
  2. Replies: 2
    Last Post: 01-05-2013, 12:42 AM
  3. [SOLVED] TextBox Multiline: have <br> tag between lines
    By monak83 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-20-2012, 11:26 AM
  4. TextBox MultiLine and WordWrap
    By BillWilts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2010, 12:52 PM
  5. Multiline textbox where the text can be selected and copied but not edited
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 06:53 AM

Tags for this Thread

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