+ Reply to Thread
Results 1 to 2 of 2

Concatenate 3 columns.

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Concatenate 3 columns.

    This is the routine I used to concatenate 2 columns. How would I concatenate 3 adjacent columns?

    Thanks,

    Jim


    Sub ConcatColumns()

    Do While ActiveCell <> "" 'Loops until the active cell is blank.

    'The "&" must have a space on both sides or it will be
    'treated as a variable type of long integer.

    ActiveCell.Offset(0, 1).FormulaR1C1 = _
    ActiveCell.Offset(0, -1) & " - " & ActiveCell.Offset(0, 0)

    ActiveCell.Offset(1, 0).Select
    Loop

    End Sub

  2. #2
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Concatenate columns.

    How concatenating 4 columns? In fact, if someone could proved the ability to concatenate columns that are not adjacent that would be helpful also.

    Thanks,

    Jim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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