+ Reply to Thread
Results 1 to 6 of 6

Concatenate with carriage return- how to remove blanks?

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

    Concatenate with carriage return- how to remove blanks?

    I'm currently using the following code to concatenate several cells into one cell, but it also displays the cells that contain blanks.

    Please Login or Register  to view this content.
    So I tried using the following code I found, but I'm getting an error.

    Please Login or Register  to view this content.
    I'm new to coding in VBA, so any help would be greatly appreciated.
    Last edited by ewellis; 11-24-2008 at 02:51 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Do you have the MOREFUNC xll installed?

  3. #3
    Registered User
    Join Date
    11-10-2008
    Location
    St. Louis
    Posts
    9
    Yes, I have that installed.

  4. #4
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    Try this:
    Please Login or Register  to view this content.
    If you're only going to run it on your machine (or if it's for work and MOREFUNC is in the standard build) then what Bob is going to come up with may be easier ... if not, the above will do the job.

    Hope that helps.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

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

    How would a go about using this code. After I place it as a module in excel what exactly would I enter in my actual cell. I'm new to coding in VBA and I'm confused on what to do.

  6. #6
    Registered User
    Join Date
    11-10-2008
    Location
    St. Louis
    Posts
    9
    Never mind. I figured out how to use it. Thank you for all your help.

+ 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