+ Reply to Thread
Results 1 to 5 of 5

Issues with Concatenating when a cell contains 287 spaces

  1. #1
    Registered User
    Join Date
    03-09-2011
    Location
    Dubbo, NSW
    MS-Off Ver
    Excel 2003
    Posts
    20

    Issues with Concatenating when a cell contains 287 spaces

    Hi All,

    I have an issue whereby I receive a runtime error 13 when I run a concatenate macro.

    I have narrowed it down to the fact that my last cell for concatenation contains 287 spaces.

    When running my macro with the cells containing simple text words like cat, dog etc; the macro runs perfectly.

    The code for my concatenate function is:


    Please Login or Register  to view this content.
    Many thanks in advance for any assistance that can be rendered.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Issues with Concatenating when a cell contains 287 spaces

    hi DDR, transpose function has limitation of 255 symbols maximum for each array element of the array being transposed. Why not to use simple "&" for those 7 cells?

  3. #3
    Registered User
    Join Date
    03-09-2011
    Location
    Dubbo, NSW
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Issues with Concatenating when a cell contains 287 spaces

    Hi Watersev,

    In doing this how would I achieve the same result using the & please?


    Many thanks in advance.

  4. #4
    Registered User
    Join Date
    03-09-2011
    Location
    Dubbo, NSW
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Issues with Concatenating when a cell contains 287 spaces

    Hi Watersev,

    In doing this how would I achieve the same result using the & please?


    Many thanks in advance.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Issues with Concatenating when a cell contains 287 spaces

    please check attachment

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by watersev; 04-22-2012 at 07:09 AM.

  6. #6
    Registered User
    Join Date
    03-09-2011
    Location
    Dubbo, NSW
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Issues with Concatenating when a cell contains 287 spaces

    Hi Watersev,

    Thanks for this. Works perfectly in terms of Concatenation.

    The only other question I have is, how do I ensure that the formatting remains the same after the concatenation?

    I've attached a copy of the sheet.


    Many thanks for all your help.
    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)

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