Forum

marge of excel work...
 
Notifications
Clear all

marge of excel work sheet in master file with indicator of file name VBA

2 Posts
2 Users
0 Reactions
70 Views
(@parveendtdc)
Posts: 1
New Member
Topic starter
 

I have a folder with multiple excel work sheets with diff-diff headers, now I want to marge all the excel sheet in a master sheet and first/A column indicate the file name

 
Posted : 29/06/2018 7:44 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Parveen,

What is A diff-diff header? Never heard of it.

Power Query is your best option, you will be able to configure the import yourself from user interface, no need for VBA.

If you prefer vba, there are lots of codes on web, to loop through a folder: https://www.thespreadsheetguru.com/the-code-vault/2014/4/23/loop-through-all-excel-files-in-a-given-folder

You will have to add the codes to perform the operations you want after the wb/sheet is open.

 
Posted : 02/07/2018 4:56 am
Share: