+ Reply to Thread
Results 1 to 3 of 3

Enter new line in cell after searched text

  1. #1
    Registered User
    Join Date
    04-21-2015
    Location
    Serbia
    MS-Off Ver
    Office 365 64-bit
    Posts
    10

    Enter new line in cell after searched text

    I have a column with about 2000 rows with text that is not formatted correctly, email addresses that are concatenated, so I need a way to enter new line in a cell after searched text

    Example:
    search term is *.rs

    Cell A1 content:
    someText.rsAnotherText

    Cell A1 after operation:
    someText.rs
    AnotherText

    Any help appreciated

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Enter new line in cell after searched text

    Hi mrmrva,

    a. Find all occurrences of .rs using the Find All CommandButton in the 'Find and Replace' UserForm.
    b. Go to the Replace Page.
    c. In the 'Replace with:' window, type in .rs, then hold down the Alt Key and type 010 (ZERO ONE ZERO) on the numeric Keypad. 010 is the Linefeed ASCII character.
    d. Select the 'Replace All' CommandButton.
    e. Done

    My solution is thanks to Andrew Poulsom at http://www.mrexcel.com/forum/excel-q...e-newline.html

    Lewis
    Last edited by LJMetzger; 06-03-2015 at 02:03 PM.

  3. #3
    Registered User
    Join Date
    04-21-2015
    Location
    Serbia
    MS-Off Ver
    Office 365 64-bit
    Posts
    10

    Re: Enter new line in cell after searched text

    OMG, of course
    I was thinking I needed VBA code for something like this, didn't occur to me simple search and replace could be used.

    Thanks for quick reply.
    Regards,
    Petar

+ 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. enter number in cell, website is searched.
    By david meyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2014, 12:45 PM
  2. Replies: 0
    Last Post: 02-01-2014, 09:52 AM
  3. [SOLVED] How to add a text in a cell below a searched cell?
    By caesar62 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-26-2013, 02:55 PM
  4. Can't enter more than 1 line of text in body of email
    By moyay4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2013, 01:41 PM
  5. enter data from form into searched cells
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-08-2010, 04:47 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