Hi All,
I am looking for vba code that allows me to collate data from varying excel workbooks, however there are multiple sheet names within each workbook (of varying amounts) and the sheet names are different. I need to collect the raw data from these workbooks which do not always follow a set standard, but will have certain fields present. What I mean by this is:
Source 1: has 3 worksheets, but the raw data is on a worksheet called "Data for the period xx-xx-xx" and has 10 columns.
Source 2: has 5 worksheets, the raw data is on a worksheet called "Raw Data" and has 11 columns of data which needs to be extracted.
Source 3 has 2 worksheets with the raw data on a worksheet called xx-xx-xx - yy-yy-yy and has 8 columns.
I know this is a very big ask, but is there a way to make a macro that will find the right fields and populate a central worksheet with the columns of data in the correct columns, from the right worksheets?
A part of me thinks that this isn't possible and the user is better off collating the data manually, and then using that as a central file.
I have followed some online guides to extract data from multiple varying workbook names, but they all seem to refer to a workbook with only 1 sheet, with the sheet name being the same in all examples.
Many thanks in advance for your answers and suggestions!
I am looking for vba code that allows me to collate data from varying excel workbooks, however there are multiple sheet names within each workbook (of varying amounts) and the sheet names are different. I need to collect the raw data from these workbooks which do not always follow a set standard, but will have certain fields present. What I mean by this is:
Source 1: has 3 worksheets, but the raw data is on a worksheet called "Data for the period xx-xx-xx" and has 10 columns.
Source 2: has 5 worksheets, the raw data is on a worksheet called "Raw Data" and has 11 columns of data which needs to be extracted.
Source 3 has 2 worksheets with the raw data on a worksheet called xx-xx-xx - yy-yy-yy and has 8 columns.
I know this is a very big ask, but is there a way to make a macro that will find the right fields and populate a central worksheet with the columns of data in the correct columns, from the right worksheets?
A part of me thinks that this isn't possible and the user is better off collating the data manually, and then using that as a central file.
I have followed some online guides to extract data from multiple varying workbook names, but they all seem to refer to a workbook with only 1 sheet, with the sheet name being the same in all examples.
Many thanks in advance for your answers and suggestions!