+ Reply to Thread
Results 1 to 3 of 3

Add Blank Row Between Concatenated Values

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    81

    Add Blank Row Between Concatenated Values

    I have the below macro that concatenates values from 4 worksheets. The concatenated column is continuous with no spaces in between. I would like to have a single blank row between the values from each sheet.

    Sub ConcatOutputFile()

    'Concatenates Tabs to Column A in the Output File Tab

    Dim rOut As Range
    Dim wks As Worksheet
    Dim i As Long

    Set rOut = Worksheets("Output File").Cells(Rows.Count, "A").End(xlUp)

    For Each wks In Worksheets(Array("Header", "Source", "To", "Target"))
    With wks
    For i = 1 To .Cells(.Rows.Count, "A").End(xlUp).Row
    Set rOut = rOut(2)
    rOut.Value = .Cells(i, "A").Value & " '" & _
    .Cells(i, "B").Value & "'" & _
    .Cells(i, "C").Value
    Next i
    End With
    Next wks
    End Sub

    Thank you

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Add Blank Row Between Concatenated Values

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Add Blank Row Between Concatenated Values

    Thank you very 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. [SOLVED] Return either a concatenated value or blank value
    By n3mcx1 in forum Excel General
    Replies: 7
    Last Post: 05-10-2012, 02:14 PM
  3. vba to Match concatenated values in concatenated columns
    By bjurick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 03:45 PM
  4. Unsure how to calculate concatenated values
    By pixulater in forum Excel General
    Replies: 10
    Last Post: 08-30-2010, 05:17 AM
  5. Vlookup - concatenated values
    By Frazzfreeman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2008, 07:23 AM

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