+ Reply to Thread
Results 1 to 4 of 4

Move into new cell instead of line break

  1. #1
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Move into new cell instead of line break

    I'm trying to add in a userform into a spreadsheet at the new company at which I work.
    Unfortunately, I'm forced to use their existing sheet instead of starting from scratch... (I still may, however).
    They use merged cells (gag) and as such, the listbox value won't grow the cell on wordwrap as it will if the cells aren't merged. Some of the values are a bit too long and they either bleed into the next column or they word wrap (causing the new line to not be visible).

    The userform I'm using is a multi-select dual listbox userform with an Add, Remove, and Transfer Button
    Here's the code for the userform's transfer button:
    Please Login or Register  to view this content.
    Is there a way to have it split into a new cell instead of word wrapping?

    Please Login or Register  to view this content.
    This may not be possible in which case I'll have to come up with something else. Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: Move into new cell instead of line break

    Can you post a working sample? Others are much better than me with working working and splitting strings. You can probably set a string length and anything greater than that length move to row beneath it. But you could likely also being splitting in the middle of word. And if possibly inserting a new row beneath it, that cell may follow the formatting of the cell above it and and also wrap.

    What if you need to add 2 rows beneath it?

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: Move into new cell instead of line break

    Have a look here
    http://www.excelforum.com/excel-prog...uto-shape.html

  4. #4
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Re: Move into new cell instead of line break

    Quote Originally Posted by ptmuldoon View Post
    What if you need to add 2 rows beneath it?
    After the useform's transfer button has dumped its data to the active cell for as many rows as needed, the user can just type in values as normal to the rows still beneath the data. That's not an issue.

    I could post the spreadsheet I suppose...

    Here's the code I got from that link, provided:
    Please Login or Register  to view this content.
    Do you know how I could incorporate this into the userform's transfer button?

    Thanks for the replies so far!


    The userform's button is at the bottom of the page.
    Attached Files Attached Files
    Last edited by Soulfien; 09-14-2017 at 05:18 PM.

+ 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. Replies: 25
    Last Post: 07-12-2016, 05:46 PM
  2. Break-Up and Move Text To Next Cell
    By gpgreen in forum Excel General
    Replies: 10
    Last Post: 04-25-2009, 09:16 PM
  3. [SOLVED] Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  4. [SOLVED] line break in a cell-Is there a way to get the line break instead of a symbol?
    By luvgreen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2005, 02:05 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