+ Reply to Thread
Results 1 to 4 of 4

Joining multiple cells into one line.

  1. #1
    Registered User
    Join Date
    01-02-2008
    Posts
    2

    Joining multiple cells into one line.

    Ok I know this sounds like an easy one, but it is not (at least for me).
    I have multiple cells with text in each cell that I want to join into one cell.
    (this is stripped from a prolog database webpage)

    this is kind of what I have, if you imagine they are individual cells
    A
    B
    C
    D
    E
    1
    2
    3
    4
    5
    6
    7
    Q
    W
    E
    R
    T
    Y
    U

    and I want to end up with three cells like this as a result
    ABCDE
    1234567
    QWERTYU

    The text may be different lengths, ideally I would select the cells and run a macro or hotkey and have all the cells, in order, in the topmost cell.

    Oh I have about 1,300 conditions of this to add up, hence the requirement to find a shortcut.

    Daithi

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Try this. I've assumed the rationale for starting a new cell is a change from text to numbers or vice versa - is this right?
    Please Login or Register  to view this content.
    Last edited by StephenR; 01-03-2008 at 06:13 AM.

  3. #3
    Registered User
    Join Date
    01-02-2008
    Posts
    2

    Joining Multiple cells into line

    hello there,
    thanks for the reply way back when in January.
    I have finally had a chance to look at this.
    I am a novice about VB but know a little bit.
    I tossed this back and forth and learned some more about activecell and rangeselection. But still could not get this to work.
    I would appreciate some pointers if possible.

    Your question regarding whether or not I need to separate numbers and text, well I do not.
    I have a list of cells (about 1,300) with text in them.
    They are all text and I just need to select by mouse say ten cells, although it varies and needs to be user decided) and run the macro.
    Ideally the macro would just compile, (concatenate) these cells and stick it into the top most cell to the right.
    So if I am compiling cells H32 to H42, then the result would be inserted in I32.
    I would then go onto H43-H56 or so and have that inserted into I43.
    And so on for about 1,300 cells, and about 600 operations of the Macro.
    Fun work for me some evening should I get the Macro to work.
    Appreciate any help on this.
    Thanks.
    DW

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    I think you can boil that down to one line. Easiest to assign to a button but it's still going to be a chore if you can't automate it.
    Please Login or Register  to view this content.

+ 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