Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7816225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:47:26+00:00 2026-06-02T05:47:26+00:00

I am working through my first VBA book and would appreciate if someone would

  • 0

I am working through my first VBA book and would appreciate if someone would point me in the right direction. How would I transfer a range of rows into a single cell with carriage returns? I would then like to repeat this action for all ranges in the column.

I think I need to:

  • find the first cell with a value in the column
  • verify that the next row is not empty
  • find the last cell in the range
  • perform “the operation” on the range

Start

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:47:33+00:00Added an answer on June 2, 2026 at 5:47 am

    Following up on my comments. here is a very simple way to achieve what you want.

    Option Explicit
    
    '~~> You can use any delimiter that you want
    Const Delim = vbNewLine
    
    Sub Sample()
        Dim rngInput As Range, rngOutput As Range
    
        Application.ScreenUpdating = False
    
        Set rngInput = Range("A1:A5") '<~~ Input Range
        Set rngOutput = Range("B1")   '<~~ Output Range
    
        Concatenate rngInput, rngOutput
    
        Application.ScreenUpdating = True
    End Sub
    
    Sub Concatenate(rng1 As Range, rng2 As Range)
        Dim cl As Range
        Dim strOutPut As String
    
        For Each cl In rng1
            If strOutPut = "" Then
                strOutPut = cl.Value
            Else
                strOutPut = strOutPut & Delim & cl.Value
            End If
        Next
    
        rng2.Value = strOutPut
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working through the book Learning WCF and on the first tutorial lab
Groovy noob here, I'm working through my first Groovy book and it has example
I'm working through Trevor Burnham's CoffeeScript book and I've run into a weird puzzle
I have been working through the Head First C# book and have used the
I'm working through the Stanford iPhone podcasts and have some basic questions. The first:
Still working through JQuery to get data and repopulate portions of a page. Right
I'm working through some android tutorials right now in preparation for a two week
I'm working through this tutorial: http://www.killerphp.com/tutorials/object-oriented-php/php-objects-page-3.php At first he has you create a setter
I'm working through NerdDinner and I'm a bit confused about the following section... First
I'm messing around with SQLite for the first time by working through some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.