+ Reply to Thread
Results 1 to 3 of 3

Row Merge VBA Help

  1. #1
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    262

    Row Merge VBA Help

    Hi Everyone!,

    It's been a while since I've posted, and a while since I've delved into the world of VBA, so I'm a little rusty.

    I have a worksheet where data is entered, for every row, in either column A, B, C, D, or E. Data rows go from row 2 to row 1212.

    I'm looking for code that will do the following:

    If there is text in A2, merge A2 to O2/ If there is text in D354, merge D354 to O354, etc.

    Essentially I want a macro to merge cells from the column that has data to column O (in every row, there will only be one cell with data across those 5 columns).

    If column C had the data, I don't want columns A and B to be merged, just everything from C to O, and so on.

    Thank you for your time in advance!

    -LM

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Row Merge VBA Help

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    262

    Re: Row Merge VBA Help

    Perfect Olly!

    Worked like a charm.

+ 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. Mail Merge Directory - Creating merge with multiple lines
    By tiggynook in forum Excel General
    Replies: 3
    Last Post: 05-03-2017, 03:00 PM
  2. Replies: 0
    Last Post: 06-24-2015, 02:34 AM
  3. Email merge from excel merge file using pre-saved word template
    By d_max_c in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2014, 12:33 PM
  4. Replies: 2
    Last Post: 01-22-2013, 11:37 AM
  5. Email Merge with variable merge records break by client level
    By sss047 in forum Word Formatting & General
    Replies: 0
    Last Post: 04-15-2011, 04:25 AM
  6. Mail Merge Query - Format of Merge Fields in Word
    By carlosbourn in forum Excel General
    Replies: 2
    Last Post: 11-10-2007, 07:11 AM
  7. Replies: 0
    Last Post: 04-21-2006, 03:40 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