+ Reply to Thread
Results 1 to 9 of 9

Multiline textbox to multiple data rows.

  1. #1
    Registered User
    Join Date
    12-16-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    13

    Multiline textbox to multiple data rows.

    Hi all,

    I have a textbox that i load a txt file into, after that i want to get all the lines in the textbox to separate rows on a different sheet.
    The target cell starting cell is A1 and i want it to overwrite any existing data each time.

    I have tried to google it a bit, but aren't really getting anywhere.

    Any advises?

    Thanks.

  2. #2
    Registered User
    Join Date
    11-19-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    2016
    Posts
    57

    Re: Multiline textbox to multiple data rows.

    Is pasting the text from your text file directly into the sheet not an option?

  3. #3
    Registered User
    Join Date
    12-16-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    13

    Re: Multiline textbox to multiple data rows.

    No not really, I want the workbook to be as automated as possible.

    Basically it is a price calculations sheet, where user can export the relevant data (as model code and so on), and at later time re-import it to see the configuration, price etc.

  4. #4
    Registered User
    Join Date
    11-19-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    2016
    Posts
    57

    Re: Multiline textbox to multiple data rows.

    When you say you load text file into text box - how do you do it?

    Not sure if what you are asking is possible with a textbox, i think listbox would be more suitable for what you're describing here. Listbox has the .RowSource property which you can link to the data in your spreadsheet

  5. #5
    Registered User
    Join Date
    12-16-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    13

    Re: Multiline textbox to multiple data rows.

    Hi load it with the code (that i just got from "logit" here on the forum);

    Please Login or Register  to view this content.
    So that part works fine.
    Now i want all the lines that are in the textbox to be copied to another sheet starting at A1 for line 1, A2 for line 2 etc.
    Always start in A1 and rewrite old text.

  6. #6
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: Multiline textbox to multiple data rows.

    So this code will allready have the words set into multiple lines?

  7. #7
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: Multiline textbox to multiple data rows.

    it would honestly help if you could show somehow what the data looks like after it has been loaded into the textbox?

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Multiline textbox to multiple data rows.

    Try this.


    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  9. #9
    Registered User
    Join Date
    12-16-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    13

    Re: Multiline textbox to multiple data rows.

    That did it bakerman2, thanks!

+ 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. multiline textbox data to be pasted in multiple rows in vba
    By VaibhavAr in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-13-2016, 03:03 AM
  2. Return multiline textbox data to separate rows
    By buhwheet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2015, 03:59 PM
  3. [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
  4. Replies: 1
    Last Post: 03-12-2015, 01:51 AM
  5. MultiLine TextBox line count to display in label or textbox
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2015, 06:02 PM
  6. 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
  7. 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