Hello,
I'm new to VBA and currently still learning. My problem is that I want to be able to copy a set of data from multiple worksheets in a workbook based on a date search and have these data paste to a summary worksheet in the same workbook.
For example: I want to copy data from sheet A-I that are dated to the date in Summary!B12 and paste the values to its corresponding column in the summary sheet.
1. summary sheet
2.Data in SheetA
3. Data in SheetB
The format of data is different from each sheets but they all have a heading e.g. code, 72 hours etc... but some doesn't include 72 hours, 96 hours etc..
Any help would be great. I tried the sumif function but I have multiple workbooks where the layout of the codes, hours etc. changes for each sheets so the sumif would only work for one workbook then I would have to type a different function formula for each. I was hoping I can use a VBA macro code and apply it to a different workbook which contains similar data but the layout would be different.
Thanks.
I'm new to VBA and currently still learning. My problem is that I want to be able to copy a set of data from multiple worksheets in a workbook based on a date search and have these data paste to a summary worksheet in the same workbook.
For example: I want to copy data from sheet A-I that are dated to the date in Summary!B12 and paste the values to its corresponding column in the summary sheet.
1. summary sheet
2.Data in SheetA
3. Data in SheetB
The format of data is different from each sheets but they all have a heading e.g. code, 72 hours etc... but some doesn't include 72 hours, 96 hours etc..
Any help would be great. I tried the sumif function but I have multiple workbooks where the layout of the codes, hours etc. changes for each sheets so the sumif would only work for one workbook then I would have to type a different function formula for each. I was hoping I can use a VBA macro code and apply it to a different workbook which contains similar data but the layout would be different.
Thanks.