+ Reply to Thread
Results 1 to 64 of 64

Help with copying data from master sheet to multiple sheets based on month

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Help with copying data from master sheet to multiple sheets based on month

    Hi,

    I am hoping this is fairly simple. I am trying to filter my master sheet (SUMMARY YTD) by QUOTE DATE (col B) which is essentially by each month and then copy this data into the respective sheets. E.g. dates would be entered like

    10/1/19
    20/1/19
    25/2/19
    26/2/19

    etc.

    and the first 2 lines of data would copy to the sheet named "JAN", the next two to the sheet named "FEB" and so on.

    However I cannot work out how to do this. I can autofilter but I cannot get it to work across multiple sheets.

    I have attached a sample. I have had to remove data for sensitivity but it should give an idea of what I am trying to achieve.
    Attached Files Attached Files
    Last edited by maym; 09-09-2019 at 01:05 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    Try
    Please Login or Register  to view this content.
    thanks Jindon, but unfortunately nothing filters (and therefore nothing copies)?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Then upload a workbook with the small amount of data.

    Impossible to test without the data.

  5. #5
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok, the sample workbook that I uploaded now contains several dates. This is all that is needed to test.

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Can I ask why do want 12 identical sheets?
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  7. #7
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by Trebor76 View Post
    Can I ask why do want 12 identical sheets?
    Need a separate sheet for each month (as well as the summary sheet).

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    It is filtering properly and pate to the appropriate sheet respectively here.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    I get 12/1/19 and 15/1/19 copied to each sheet and nothing else??

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    OK, perhaps the dates.

    In A6, value in formula bar shows as 2019/1/12, means Jan 12 2019.

    Is that the same?

  11. #11
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Yes, it must have something to do with the dates and settings. On mine, the formula bar shows as 12/01/2019. Perhaps the macro can be amended or do the dates need to be changed in some way?

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Can you just try using CLng function?
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    I get an error: Autofilter method of Range class failed???

  14. #14
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Need a separate sheet for each month (as well as the summary sheet).
    Not sure why because if you filter the summary by month you get the same result

    At worst can't you just have one other sheet where you have a month drop-down that then copies in the required data?

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    OOps..
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    OOps..
    Please Login or Register  to view this content.
    same result unfortunately. 12/1/19 and 15/1/19 copy to each sheet but nothing else??

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Here's the AdvncedFiltrer version and hope this works.
    Please Login or Register  to view this content.

  18. #18
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Yes! Works perfectly! Thank you!

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    You are welcome and thanks for the rep.

    Date is always a problem...

  20. #20
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    Here's the AdvncedFiltrer version and hope this works.
    Please Login or Register  to view this content.
    This has been working really well for me. But since the start of the new year, I need to filter and copy based on dates in the financial year. So for the tabs Jul-Dec, these need to be dates in 2019, then for tabs in Jan-Jun, these need to be for dates in 2020. Any idea how this code can be amended to reflect this?

  21. #21
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Try change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  22. #22
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    Try change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Thanks jindon. I tried that but unfortunately no records copy at all to any of the tabs?

  23. #23
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Ahhh, perhaps
    Please Login or Register  to view this content.

  24. #24
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    thanks jindon. This still copies all records though, e.g. if I have a date 30/6/19, it copies to the Jun tab, but this should not happen as it is Jun 2019 (the previous year)? Is there a way it will copy all current years records to Jan-Jun that are relevant, and the previous years to Jul-Dec?

    For example:
    12/8/2019 (should copy to the Aug tab and currently it does)
    15/6/2020 (should copy to the Jun tab but currently doesn't)
    30/6/19 (should not copy at all as the Jun tab would be for records in June 2020 but it currently copies over)
    25/2/20 (should copy to the Feb tab as it is in 2020 but currently doesn't copy at all)
    2/5/19 (should not copy at all as the May tab would be for records in May 2020 but it currently copies over)

  25. #25
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    See if this works,
    Please Login or Register  to view this content.

  26. #26
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    See if this works,
    Please Login or Register  to view this content.
    thanks jindon, it is almost right I think.

    15/6/2020 does not copy over to the June tab but 30/6/2019 does when it shouldn't (as this is the previous year). Perhaps there is an issue with June only?

  27. #27
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Then change 5 to 6,
    Please Login or Register  to view this content.

  28. #28
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    Then change 5 to 6,
    Please Login or Register  to view this content.
    thanks jindon! I will do some more testing but this looks like it is working ok

  29. #29
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    As we have moved into the new financial year, I am having trouble copying the correct records over now. I only want records that occur in the current Financial year (1 Jul 20 - 30 Jun 21).

    For example:
    12/6/2020 (should not copy as this occurred in the previous financial year)
    2/7/20 (should copy to the Jul tab as it is in the 2020 Financial Year but currently doesn't copy at all)

    Is there a way the above can be adjusted to solve for this?

  30. #30
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Try change to
    Please Login or Register  to view this content.

  31. #31
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    perfect, thanks jindon! Will this work for future financial years? That is, in 12 months time, will it copy records in that financial year (1 Jul 21 - 30 Jun 22) and so on for future years? Or will it need adjusting each year?

  32. #32
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    It should...

  33. #33
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok thanks again!

  34. #34
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    It should...
    I know this is an old post, but this is my first attempt to copy records for this financial year (1 Jul 21 - 30 Jun 22) and unfortunately the above does not return any records.

    jindon - any thoughts on this?

    Thanks!

  35. #35
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    If you upload a workbook that you are using and the code that does not work, it would help.

  36. #36
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok,here is a sample with just the raw dates. Each of the dates should copy to the respective "Month" tab based on the date.
    Attached Files Attached Files

  37. #37
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Try change that line to
    Please Login or Register  to view this content.
    Edit: it was not so easy as I thought...
    Last edited by jindon; 08-30-2021 at 07:20 AM.

  38. #38
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok thanks jindon! That works great! I will test on my master workbook and let you know how it goes. Do you think this adjustment will work for future years, or is it possible that I will run into a similar issue for 2022 / 23?

  39. #39
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    It should work with current financial year. I hope.

  40. #40
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok, thanks again.

  41. #41
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by jindon View Post
    It should work with current financial year. I hope.
    Again, I know this is an old post, but I have gone into the workbook and tried to copy records for this financial year (1 Jul 22 - 30 Jun 23) and unfortunately it copies only records for 2021. But I don't want these. It should copy records for the current financial year and ignore previous records in the previous financial year.

    Sample attached.

    jindon - any thoughts on this?

    Thanks!
    Attached Files Attached Files

  42. #42
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Not really sure though

    Please Login or Register  to view this content.

  43. #43
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    thank you, I will give that a try.

  44. #44
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    this is working great jindon, thank you.

    I would like to include the previous 3 months (so if financial year is 1 Jul 2022 - 30 Jun 2023, I would like to include Apr/May/Jun 2022). If financial year is 1 Jul 2023 - 30 Jun 2024, I would like to include Apr/May/Jun 2023).

    I needed to rename the sheets as obviously Apr/May/Jun appear twice and I can't use the same name. But this has really mucked up the code.

    Any thoughts as to how I can account for these additional months?
    Attached Files Attached Files
    Last edited by maym; 07-13-2022 at 12:13 AM.

  45. #45
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    change to
    Please Login or Register  to view this content.

  46. #46
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    thank you, this is great. I had a feeling there was another For...Next Loop in there but I couldn't quite figure it out.

  47. #47
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    this works well, except that it copies the data for Jul-22 twice? I am not sure how to resolve as the formula specifies month < 7?
    Attached Files Attached Files

  48. #48
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    change 7 to 6
    Please Login or Register  to view this content.

  49. #49
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Ah, that makes sense. Thanks again

  50. #50
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    I know it has been sometime since I replied to this post, but with the new year now, I am experiencing issues again.

    With the sample attached above, I get a 'subscript out of range' error on this line:

    Please Login or Register  to view this content.
    The workbook will always contain a rolling 15 month period from April the previous year to June of the current year.

    It seems I have issues when:

    1. The year rolls over to the new year and
    2. The financial year changes from Jul to Jun each year.

    jiindon - can you please take a look again for me?

  51. #51
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    1) Copy any one month sheet that is blank (e.g. MAY-22) and name it as a template then make it hidden and save the workbook.

    2) code
    Please Login or Register  to view this content.

  52. #52
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok thanks.

    But now it adds more sheets (the sheets from Apr the previous year to Jun of the current year are already present), but it added sheets for the next 12 months.

    It also didn't copy over properly? See sample attached.
    Attached Files Attached Files

  53. #53
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    You know I totally forgot the requirements, and I don't want to read all through this thread, so

    Can you repeat your requitements in detail ?

  54. #54
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    Yes, of course.

    I am trying to filter my master sheet (SUMMARY) by QUOTE DATE (col B) which is by each month and then copy each record into the respective sheets with the month name.

    So, e.g. if the first date in col B is 21/7/22, this line would be copied to the first line in the sheet named JUL-22, and so on.

    The workbook will always contain sheets for the current FY AND the previous three months (i.e. Apr, May and Jun).

    Each new FY they will just get re-named, so currently I have sheets from Apr-22 to Jun-23. When Jul 23 comes around, the sheet named Apr-22 will be re-named to Apr-23, etc. I will do this manually.

    Issues appear to occur when:
    1. The year rolls over to the new year (no values are copied over) and
    2. The financial year changes from Jul to Jun each year.

    I hope this has explained adequately, but please let me know if not.
    Last edited by maym; 01-08-2023 at 10:21 PM.

  55. #55
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    OK, please completely forget about post #51.
    See if this works
    Please Login or Register  to view this content.

  56. #56
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok thank you.

    It only copied over a couple of values and these were for 2023 and were copied into sheets for 2022. See sample attached.
    Attached Files Attached Files

  57. #57
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Ok, one more change in the formula
    Please Login or Register  to view this content.
    need to be
    Please Login or Register  to view this content.
    The reason it didn't work in new year was the code was looking the Current year, but now it is referring to B6 in Summary sheet.
    So remember the year in B6 must be in current financial year.

  58. #58
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok, thank you.

    This copied most values, but the values for Jul 23 and Aug 23 were copied into the sheets for Jul-22 and Aug-22.

    I assume this is to do with the year in B6 being in current financial year?

    This value in B6 will almost always be in Apr or possibly May of the previous FY.

    Is there a way to adjust the code to account for this?

  59. #59
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    OOps, one more,,,
    Please Login or Register  to view this content.
    need to be
    Please Login or Register  to view this content.

  60. #60
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok this appears to be working ok.

    Will this still work if the value in B6 IS NOT in the current FY?

  61. #61
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    If you prepare all the worksheets regarding that year, it will.

    That's what I had tried to create new set of worksheets, if financial year changes (failed anyway though).

  62. #62
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Help with copying data from master sheet to multiple sheets based on month

    ok, thank you. I will do some testing and see if it is ok.

  63. #63
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Help with copying data from master sheet to multiple sheets based on month

    Hello. Take a look at the range AJ4:AK5 and, in particular, the range AJ5:AK5 (which is a range with the name: 'Financial_Year').
    That's the way you tell the macro the period you want to pass the data from.

    You can simply click on the object and then you evaluate the results.
    Attached Files Attached Files
    Last edited by beyond Excel; 01-09-2023 at 01:23 AM.
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  64. #64
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help with copying data from master sheet to multiple sheets based on month

    Quote Originally Posted by maym View Post
    Will this still work if the value in B6 IS NOT in the current FY?
    Quote Originally Posted by jindon View Post
    That's what I had tried to create new set of worksheets, if financial year changes (failed anyway though).
    When the year in B6 changes and if you run the code, it will create a new set of worksheets and sort them.
    Sheet "template" is added and hidden.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Copying Comments from Multiple Sheets to a Master Sheet
    By mcupp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2018, 08:04 PM
  2. Copying (but not deleting) data from a master sheet to multiple worksheets based on Col A
    By SmartBalance in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 03:09 PM
  3. Replies: 2
    Last Post: 02-12-2013, 07:28 AM
  4. Copying data from multiple work sheets to a master sheet
    By cpgeorgejohn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2012, 09:37 AM
  5. Copying data from multiple sheets to master sheet
    By phong919 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2010, 04:30 PM
  6. Copying row data from a Master sheet to multiple sheets
    By f3racer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2009, 08:28 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