+ Reply to Thread
Results 1 to 3 of 3

Concatenate to include carriage return

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    St. Louis
    Posts
    9

    Concatenate to include carriage return

    Hello, Everyone

    Name Address City State Number etc.

    I would like to concatenate these and include carriage returns so that
    the result looks like this:

    Name
    Address
    City
    State
    Number

    I'm currently using the following code:
    #
    Please Login or Register  to view this content.
    #

    I don't know how to get the concatenate function to recognize a
    carriage return. Any help would be greatly appreciated.

    ewellis
    Last edited by ewellis; 11-24-2008 at 10:57 AM. Reason: Added code tags as per rules

  2. #2
    Registered User
    Join Date
    12-14-2007
    Location
    Ontario
    Posts
    19
    Please Login or Register  to view this content.
    Stands for Visual Basics Carriage Return Line Feed
    Last edited by excel_guy49; 11-12-2008 at 03:03 PM.

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Welcome to the forum. When posting vba code, be sure to enclose it in CODE tags. The # icon makes it easy. You might want to edit your post.

    You can use one of vbcr or Chr(13), vblf or Chr(10), or vbcrlf of Chr(13)Chr(10) constants if just want the value. If you want a formula, use =CHAR.

    e.g.
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 11-12-2008 at 02:12 PM.

+ 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