SunshineVBA
New Member
- Joined
- May 21, 2022
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
Hello,
I’m looking for a piece of code that will go through all the files in a folder, copy data from tab “CoverPage” for range at A14:B and down (there could be 1 line or could be up to 15, not consistent). Then paste it into the main workbook and worksheet “Allaccounts”.
So I already found code that works perfect for this part. But I am wanting to also record the name of the source workbook beside any lines of data that it copied. Wondering if anyone can help me with this piece of code?
Thank you
I’m looking for a piece of code that will go through all the files in a folder, copy data from tab “CoverPage” for range at A14:B and down (there could be 1 line or could be up to 15, not consistent). Then paste it into the main workbook and worksheet “Allaccounts”.
So I already found code that works perfect for this part. But I am wanting to also record the name of the source workbook beside any lines of data that it copied. Wondering if anyone can help me with this piece of code?
Thank you