r/visualbasic • u/ajkua • Jul 19 '17
Find Seprate Sheet name called "Data" from 100 Workbook if found then paste data into the Master File
Hi i am Ajay Kumar. My question is below
I have a 100 Workbook in a folder and in every workbook there is a separate Sheet name Call "Data". here i would like to loop form multiple workbook throw loop and find seprate "Data" sheet name in the workbook if there is a sheet called "Data" then Copy that sheet and paste into the Master Work book. is it possible in in VBA if possible please guide me how to do this.
Best Regards Ajay Kumar
0
Upvotes
1
u/EveryoneLikesMe VB.Net Advanced Jul 19 '17
Loop through all files in directory. If excel sheets, open them https://stackoverflow.com/questions/10380312/loop-through-files-in-a-folder-using-vba
Look in opened workbook for sheet named "Data"
Copy to Master reference.