+ Reply to Thread
Results 1 to 5 of 5

copy column data from multiple tabs onto specified tab, transpose, repeat

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Lightbulb copy column data from multiple tabs onto specified tab, transpose, repeat

    Hello,

    I have been looking at this quite a bit and am hoping somebody can advise on how I can do the following (workbook attached).

    1. The idea is that the macro will start on sheet1, look at column "Jon", copy the values down to the last active cell as well as the dates and paste special values and transpose them onto the "Jon" tab starting in B8 and B9. Each day all of the dates and values on the "Jon" tab should be overwritten with the data on sheets1 and 2, instead of it being cumulative.
    2. The macro will then go to sheet2, look at column "Jon", copy the values to the last active as well as the dates and paste special values and transpose them onto the "Jon" tab starting in B18 and B19. Each day all of the dates and values on the "Jon" tab should be overwritten with the data on sheets1 and 2, instead of it being cumulative.
    3. The macro would then save the "Jon" tab as a separate pdf in a specified location.
    4. The process would then repeat for "Mike" and "Paul". Each day the number of columns can fluctuate, so it may be 3 one day (Jon, Mike, Paul) and 8 the next. The number of rows also may vary from day to day, and column to column.

    I have attached a workbook that contains the data for the scenario above as well as the output (Jon, Mike, Paul tabs). Ideally there will not be new tabs that remain for Jon, Mike, Paul, just a default tab (e.g. "output" tab) that would receive the transposed data from the columns for Jon, Mike, Paul. I put all 3 in the workbook so you could see how each of them would output.

    Any and all help on this one would greatly be appreciated!

    Cheers!

    jmp_sample.xlsm

  2. #2
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: copy column data from multiple tabs onto specified tab, transpose, repeat

    For step 3, the saving to .pdf is not a necessity as I can manage to figure that out myself since I have done something a a bit similar to that before, but the rest would be a big help. Thanks.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy column data from multiple tabs onto specified tab, transpose, repeat

    Maybe:

    Please Login or Register  to view this content.
    Assumes the sheets are already created.

  4. #4
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: copy column data from multiple tabs onto specified tab, transpose, repeat

    Thank you, this is more efficient than what I had come up with. Can you kindly explain what the ".End(3) (1)" means? I'm familiar with .End in the context of range and (xlUP) but I'm just trying to learn more.


    Thanks

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: copy column data from multiple tabs onto specified tab, transpose, repeat

    You're welcome. Glad to help out and thanks for the feedback. The .End(3)(1) selects the last filled cell in the column. The (3) means (xlUp) it's just a shorter version. (1) is an offset command which is equal to .Offset(0) in this case. (2) would equal .Offset(1) the more commonly used code. If you consider your problem solved, please mark this thread as solved.

+ 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] Need macro to edit data - select, copy, transpose, repeat
    By zaxer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 02:40 AM
  2. Replies: 9
    Last Post: 07-22-2012, 12:03 PM
  3. [SOLVED] Copy, paste, transpose 4 cells delete and repeat
    By blarsen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2012, 01:29 AM
  4. Repeat copy and paste special (transpose)
    By Mengtzee in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-16-2012, 11:38 AM
  5. Find, Copy, Transpose, Repeat
    By siddharthariver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2010, 06:06 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