+ Reply to Thread
Results 1 to 8 of 8

Adjustments to exclude spaces for current macro

  1. #1
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Adjustments to exclude spaces for current macro

    I have a macro that concatenates a series of lines. The current macro populates the data to a blank line below the dataset. The new data set does not have blank lines. I would like the data to be populated on the first line of the dataset instead of the blank line below.

    Attached is the file with the macro - Sheet1.Concat_Long_Text4 and data example of how I would like to see the data populated.

    This data should be populated this way for both the Long Description and Short Description column.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often 365, but still time to time use also older versions
    Posts
    8,334

    Re: Adjustments to exclude spaces for current macro

    I.m not sure if I undersood right, but change in the code all texts (more than 20 !):
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    or may be to:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Adjustments to exclude spaces for current macro

    Neither worked. It ended up only populating cell H2 and nothing was populated for the concatenated long description for I2. Nothing below row A was touched.

  4. #4
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Adjustments to exclude spaces for current macro

    here is a previous thread for which some changes were made to this macro. http://www.excelforum.com/excel-prog...ate-macro.html

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often 365, but still time to time use also older versions
    Posts
    8,334

    Re: Adjustments to exclude spaces for current macro

    So (as obviously I do not understood well) insert a BEFORE sheet and an AFTER sheet to show what you want to achieve. (or may be even a third one - Before+old macro - although this can be easily done with the macro :-D )

  6. #6
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Adjustments to exclude spaces for current macro

    Before.After file is attached.

    there is a new and old tab with information
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Adjustments to exclude spaces for current macro

    Did you have any luck?

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often 365, but still time to time use also older versions
    Posts
    8,334

    Re: Adjustments to exclude spaces for current macro

    Try this version:
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 06-03-2015, 01:33 PM
  2. [SOLVED] Marco to import csv from browse location and rename current sheet without spaces or dashes
    By gutterball in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2014, 09:42 AM
  3. Userform Macro need minor adjustments to code (Populate Textbox and Combobox Return Issue)
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2014, 08:07 AM
  4. New Macro with Adjustments from Previous Macros
    By JohnCarterJr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2013, 03:47 PM
  5. Copy cell value to new cell and exclude all spaces in process
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2011, 03:42 PM
  6. [SOLVED] Calculate,Copy, Paste Cell Group Macro Adjustments
    By boblinda11@aol.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 11:50 PM

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