+ Reply to Thread
Results 1 to 7 of 7

VBA Help need for Copying data from another sheet and create separate sheets

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    VBA Help need for Copying data from another sheet and create separate sheets

    Folks,

    I have a workbook with two sheets the first one is called "SDL" contain master data for three TEAMS (TEAM.A, TEAM.B & TEAM.C") and the second worksheet is called "SDL_Calendar" for graphical chart view.

    I need Macro to copy the relevant column data from "SDL” sheet and paste into appropriate column in "SDL_Calendar" sheet then make separate sheets for each “TEAM".

    Thanks to Mr. John (jaslake) and Mr. Johan (berlan) who helped me by developing some macros to setting the workbook up to this stage.


    I have attached the work book of what I am trying to accomplish.



    Thanks in advance.

    Joshi
    Last edited by krjoshi; 02-25-2014 at 10:10 AM.
    Cheers,

    Joshi
    Being with a winner makes you a winner

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    Hi Joshi

    Try this Code in the attached
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    Hi John,

    Thank you so much, excellent code. And have some minor issues please help me to fix.

    1. For the testing purpose I deleted “TEAM.A” worksheet then I rerun the Macro, but the “TEAM.”A worksheet was created without data.

    2. The “TEAM.A, B & C” worksheet’s row height and column width should be same as “SDL_Clendar” worksheet

    3. If I add new row data in “SDL” worksheet for any one of the TEAM that also need to be copied into “SDL_Calendar”. And the new copied data to be formatted same as above row format including row heights & cell border; then the new added data to be reflected in the relevant TEAM sheet also.

    4. “SDL_Calendar” Column "C:D" getting blank. That to be filled, Column "C:D" values = "P:Q" values

    Thank you so much once agian for your time and support.

    Joshi
    Last edited by krjoshi; 02-25-2014 at 03:14 PM.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    Hi Joshi

    For this issue it's a lack of Dots(.)...add them as indicated
    the “TEAM.”A worksheet was created without data
    Please Login or Register  to view this content.
    The other issues, I'll need to look at...it'll be a while...

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    Hi Joshi

    These issues have been dealt with:

    1. For the testing purpose I deleted “TEAM.A” worksheet then I rerun the Macro, but the “TEAM.”A worksheet was created without data.
    Code has been rewritten in part...Fixed in rewrite

    2. The “TEAM.A, B & C” worksheet’s row height and column width should be same as “SDL_Clendar” worksheet
    Code has been rewritten in part...Fixed in rewrite

    3. If I add new row data in “SDL” worksheet for any one of the TEAM that also need to be copied into “SDL_Calendar”. And the new copied data to be formatted same as above row format including row heights & cell border; then the new added data to be reflected in the relevant TEAM sheet also.
    This issue has been dealt with as follows:
    Part 1...Add as many rows as you like to the SDL Calendar Sheet...format them as you like...fill the entire Sheet if you like.
    Part 2...Simply rerun the Code...SDL Calendar and Team Sheets will be rebuilt to include the added items.

    4. “SDL_Calendar” Column "C:D" getting blank. That to be filled, Column "C:D" values = "P:Q" values
    Code has been rewritten in part...Fixed in rewrite
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    Hi John,

    Excellent code, its working like anything. I problems are solved. Thank you so much for your time and help.

    YOU ARE A REAL GURU.

    Thanks once again.

    Joshi

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Help need for Copying data from another sheet and create separate sheets

    You're welcome...glad I could help. Thanks for the Rep.

+ 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] VBA / Macro help needed to create separate sheets from Master sheet by year
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 08:34 AM
  2. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  3. Replies: 2
    Last Post: 05-25-2012, 02:56 AM
  4. Replies: 2
    Last Post: 05-25-2012, 02:56 AM
  5. Matching data on two separate sheets and copying from one to another
    By eonizuka in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-23-2009, 11:47 AM

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