Consulting

Results 1 to 2 of 2

Thread: Sleeper: Macro to stack lists until empty

  1. #1
    VBAX Newbie
    Joined
    Jun 2018
    Posts
    1
    Location

    Question Sleeper: Macro to stack lists until empty

    Hi

    I have two lists that are generated from user input. They vary in length and can be a maximum of 1000 rows each.


    1. The first list adds a + in front of every word.
    2. The second list adds brackets [] around each phrase.


    I'd like to use a macro to stack the lists until they're empty.

    Column B has the first list. There are SUBSTITUTE formulas in every cell down to row 1001. Same goes for column D, which holds the second list.

    Assume that I put in values and generate two lists of 20 rows each. I want the macro (activated by a button) to stack the both lists and create a 40 row list.

    I've tried a couple of online solutions but to no avail.

    EDIT: Uploaded a file for reference.
    Attached Files Attached Files
    Last edited by wiro; 06-12-2018 at 03:17 AM.

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Use Go Advanced and below the post Editor, the Manage Attachments to upload a sample workbook with a "Result" sheet showing what the final result of the macro should look like.

    Include about 10 items in all lists and about 10 formulas in that column on the "original" sheet
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •