+ Reply to Thread
Results 1 to 3 of 3

Return multiline textbox data to separate rows

  1. #1
    Registered User
    Join Date
    03-09-2010
    Location
    Cerritos, CA
    MS-Off Ver
    Excel 2010
    Posts
    31

    Return multiline textbox data to separate rows

    Here's a quick one I hope.

    Users are allowed to cut and paste a series of values into a multiline textbox. What I need to have done is have each value placed into the first column of each new row and find the next vacant row in the first column on subsequent entries:

    The Data Looks like this inside the TextBox:

    ATT09405532
    ATT09405533
    ATT09405542
    ATT09441141
    ATT09442023
    ATT09469065
    ATT09429559
    ATT09429591
    ATT09429595
    ATT09442234
    ATT09457425
    ATT09457430

    With the below code on the userform, all the data transfers to one cell. How can I parse this?

    Please Login or Register  to view this content.
    Best!

    pt

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,963

    Re: Return multiline textbox data to separate rows

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-09-2010
    Location
    Cerritos, CA
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Return multiline textbox data to separate rows

    Thank you. Half right. It parses the data into separate rows, but it's repeating the first value in each row.

    I cut and paste this into the Textbox (BTW I had to change this sub to respond off the Exit Event out of the TextBox rather than the Enter)

    ATT09405532
    ATT09405533
    ATT09405542
    ATT09441141
    ATT09442023
    ATT09469065
    ATT09429559
    ATT09429591
    ATT09429595
    ATT09442234
    ATT09457425
    ATT09457430

    but the sub returns:

    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532
    ATT09405532

    It's not looking for the next available blank row for the next series of entries (but I believe I can figure that part out).

+ 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] Question: Would I be able to selected rows of value to a vba multiline textbox?
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2015, 06:10 PM
  2. [SOLVED] VBA to add textbox data to separate rows.
    By rsavoie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2014, 01:55 AM
  3. Parsing a multiline Textbox and placing them in column A [rows]
    By bigmack in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2009, 10:03 AM
  4. Classifying Multiline Cells Into Separate Rows
    By G.shima in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2009, 09:47 PM
  5. data form to browse & edit, with multiline textbox
    By SarahMcM in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-26-2006, 08:16 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