Hi,
I have a workbook consisting of a large number of worksheets that I'd like to separate, using VBA code, into a number of smaller workbooks, with the criterion used to separate the sheets being the date in cell A6 of each sheet.
Each sheet has a date in cell A6 in the text format "DD/MM/YYYY to DD/MM/YYYY".
Can someone please offer me some guidance about the VBA code that will use the first part of the text in cell A6 of each sheet to separate the large workbook into several smaller ones.
For example, all worksheets with "31/10/2017" in cell A6 (e.g. "31/10/2017 to 31/08/2018") will be copied to a new workbook, all worksheets with "30/11/2017" as the first date in cell A6 (e.g. "30/11/2017 to 31/08/2018") will be copied to another workbook etc.
Thanks!
I have a workbook consisting of a large number of worksheets that I'd like to separate, using VBA code, into a number of smaller workbooks, with the criterion used to separate the sheets being the date in cell A6 of each sheet.
Each sheet has a date in cell A6 in the text format "DD/MM/YYYY to DD/MM/YYYY".
Can someone please offer me some guidance about the VBA code that will use the first part of the text in cell A6 of each sheet to separate the large workbook into several smaller ones.
For example, all worksheets with "31/10/2017" in cell A6 (e.g. "31/10/2017 to 31/08/2018") will be copied to a new workbook, all worksheets with "30/11/2017" as the first date in cell A6 (e.g. "30/11/2017 to 31/08/2018") will be copied to another workbook etc.
Thanks!