+ Reply to Thread
Results 1 to 8 of 8

Stacking several columns into one column on another worksheet

  1. #1
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Stacking several columns into one column on another worksheet

    Thank you for looking at my question, which involves the editing of an existing macro that I found on a Microsoft forum. I have attached a file to illustrate it.

    In the attached file, the macro called OneColumnV2 copies several columns from the "Transport" worksheet (in this case 4 columns but it could be more or less) to another worksheet called "IndCalc1." The copied items appear on the IndCalc1 worksheet beginning on the fourth row in column A with two blank rows between each copied segment. This is exactly what I need except that I need it in column B not column A.

    I have tried editing the macro to accomplish this, but my beginners level knowledge of VBA will not solve it. Thank you again.
    Attached Files Attached Files

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Stacking several columns into one column on another worksheet

    it needed a few , 1 in Cells references changed in to , 2

    have a look if this works for you


    Please Login or Register  to view this content.

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Stacking several columns into one column on another worksheet

    See the change in red:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Re: Stacking several columns into one column on another worksheet

    Hi Roel, That works great. I have one minor question. The copied data starts on row 3 instead of row 4. Is that easily changed? Thanks for the quick response!

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Stacking several columns into one column on another worksheet

    Ah I see what happend a +1 was dropped in editing the code after the line myRng.copy
    change the line

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Re: Stacking several columns into one column on another worksheet

    Perfect, thanks again!

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Stacking several columns into one column on another worksheet

    I'm feeling unfulfilled

  8. #8
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Re: Stacking several columns into one column on another worksheet

    Sorry, I did not see your response. I appreciate your assistance. Thank you.

+ 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. [SOLVED] Stacking data from multiple columns.
    By paularthur90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2016, 05:15 AM
  2. Replies: 3
    Last Post: 11-14-2015, 03:48 PM
  3. [SOLVED] Stacking Columns in Excel
    By ssanjju in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2013, 11:12 PM
  4. Stacking many columns into one
    By pickslides in forum Excel General
    Replies: 2
    Last Post: 01-08-2012, 08:04 PM
  5. Need Urgent Help on Stacking Columns in Excel
    By mablelim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2011, 02:25 AM
  6. Add secondary axis without stacking columns
    By swaintwin in forum Excel General
    Replies: 5
    Last Post: 04-20-2010, 06:09 PM
  7. Stacking columns across multiple sheets
    By mstinson23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2009, 03:08 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