![]() |
Copy ranges of data from Master worksheet. Thanks
Greetings! I've been trying to create a Macro that does the
following: Background Info. The Workbook name is Year02.xls This workbook has about a hundred worksheets. The first worksheet is named "02Master" The first worksheet (02Master) contains data starting at A1 and ending at L376, row A is just text headers. Each row of data, starting with row A2, contains data for a given date, starting with Dec 17th, 2001. Column G contains the raw date number, 37242, for that date, and this column is incremented by one down the column to track each following date. The other columns contain work hours, etc. The next worksheet is named "02-Week1: Then next worksheet is named "02-Week2" And so on for the next fifty one sheets. Question: I need to copy the data from "02-Master" in seven day blocks to each worksheets, starting with worksheet 02-Week1. So, worksheet 02-Week1 will contain the data from 02Master beginning with Row 2 through and including Row 8. Worksheet 02-Week2 will contain the data from 02Master from Row 9 through and including Row 15. And Etc, etc, up to Row 376. I hope I didn't belabor this too long, and I appreciate any input. FWIW, I have to do this same exercise for Year 03 too, Beginning with datecode 37617, Dec 27, 2002. THANKS! |
Copy ranges of data from Master worksheet. Thanks
This doesn't look too hard, but I can't help ya, I'm just learning VB
programming. You could do some of this with the Macro recorder, but the rest is out of my league. I'm certain that someone here will come up with a solution. GOOD LUCK! Background Info. The Workbook name is Year02.xls This workbook has about a hundred worksheets. The first worksheet is named "02Master" The first worksheet (02Master) contains data starting at A1 and ending at L376, row A is just text headers. Each row of data, starting with row A2, contains data for a given date, starting with Dec 17th, 2001. Column G contains the raw date number, 37242, for that date, and this column is incremented by one down the column to track each following date. The other columns contain work hours, etc. The next worksheet is named "02-Week1: Then next worksheet is named "02-Week2" And so on for the next fifty one sheets. Question: I need to copy the data from "02-Master" in seven day blocks to each worksheets, starting with worksheet 02-Week1. So, worksheet 02-Week1 will contain the data from 02Master beginning with Row 2 through and including Row 8. Worksheet 02-Week2 will contain the data from 02Master from Row 9 through and including Row 15. And Etc, etc, up to Row 376. I hope I didn't belabor this too long, and I appreciate any input. FWIW, I have to do this same exercise for Year 03 too, Beginning with datecode 37617, Dec 27, 2002. THANKS! |
Copy ranges of data from Master worksheet. Thanks
Dave:
Thanks for your reply. I have to use this Macro for years, 00, 01, 02 and 03, plus, we have numerous employees that each need their own spreadsheets. I appreciate your assistance, and I'm testing your solution now. THANKS! |
Copy ranges of data from Master worksheet. Thanks
Dave:
Thanks for your reply. I have to use this Macro for years, 00, 01, 02 and 03, plus, we have numerous employees that each need their own spreadsheets. I appreciate your assistance, and I'm testing your solution now. THANKS! |
All times are GMT +1. The time now is 08:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com