+ Reply to Thread
Results 1 to 3 of 3

VBA to merge text from 2 cells into 1

  1. #1
    Forum Contributor
    Join Date
    07-21-2018
    Location
    London, England
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    117

    VBA to merge text from 2 cells into 1

    Hello!

    I need some code to merge text (forename and surname) from 2 cells into one and then initialise the forename.

    For example, I have surnames in column C (i.e Smith) and forenames in column D (i.e John), I then want 'J. Smith' to appear in column E.

    My data range is indefinate so I guess the code will have to find the last row.

    I already have some code to initalise names (below) but this was from a different project so I'm not sure if it'd work in this context.

    Please Login or Register  to view this content.
    Please can anyone help me with this?

    Thank you!

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA to merge text from 2 cells into 1

    Please Login or Register  to view this content.
    Last edited by nigelog; 02-12-2019 at 09:27 AM.

  3. #3
    Forum Contributor
    Join Date
    07-21-2018
    Location
    London, England
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    117

    Re: VBA to merge text from 2 cells into 1

    That is perfect! Thank you so much!

+ 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] Help - Un-Merge Cells But Keep All Lines of Text
    By Treeman_JF in forum Excel General
    Replies: 2
    Last Post: 11-07-2018, 09:50 PM
  2. Merge multiple text cells
    By gjjh25 in forum Excel General
    Replies: 1
    Last Post: 01-12-2012, 08:27 AM
  3. How to merge cells, with out loosing text
    By Flabbergaster in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-03-2010, 03:14 PM
  4. Merge Text and Number Cells
    By aslam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-24-2010, 05:52 PM
  5. [SOLVED] VBA for Text/Cells merge
    By Ron in forum Excel General
    Replies: 6
    Last Post: 05-21-2006, 12:35 PM
  6. How do I merge new text into existing text cells.
    By bweiner in forum Excel General
    Replies: 2
    Last Post: 12-11-2005, 08:40 PM
  7. [SOLVED] Wrap text, Merge cells
    By ufo_pilot in forum Excel General
    Replies: 2
    Last Post: 08-17-2005, 10:04 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