Hi Guys,
I have this spreadsheet that I have to use for monthly biling of all our departments and email off the relevant sections to their respective departments.
What I need is a code that can copy the section I need and paste this information into a new seperate workbook and then save that workbook under the cost centre name which can be found in Column J. I also need to make sure Rows 1 to 3 are kept when seperating the different departments as these contain the column headers.
Is it possible to keep the borders also? The only way I can think of finding where the different departments end is by the Bold section in between columns M to S. Maybe if the Macro could search for this bold line and copy up to this section and then it know the next line will be a new cost centre. I only need columns A to U to to be put in new workbook but it doesn't matter if the rest of the columns are kept also.
I have attached the spreadsheet in quesion so you can look at it. On Sheet2 I have made an example of what I want done as I have copied and pasted a section out to show what I need, although the code would need to save this to a seperate workbook.
How easy would it be to acheive this?
Thanks in advance.![]()
Bookmarks