I am new to the site and new to vba coding and very new to loops, currently i am trying to summarize the data in a workbook which has total 25 sheets and these sheets are not fixed based on the issues we have the list of sheets maximum of 25 (2 (View Recon & Open Items) are main sheets on which my codes are run and add new sheets upto additional 23 sheets). I want to summarize the data of 10 sheets which were generated using view recon in Summary tab from ROW 4. For example sheet names (sheet2, 5, 7, 9, 10, 12, 14, 17, 18, 19), here sheet names are fixed and number of sheets are not fixed it can be 1-10.
I tried using - this is not working for me as i might have defined incorrectly
Dim sh As Worksheet
For Each sh In Sheets(Array("Sheet2", "Sheet5", "Sheet7", "Sheet9", "Sheet10", "Sheet12", "Sheet14", "Sheet17", "Sheet18", "Sheet19"))
Then my code to summarize it - which is working fine when i do it separately but i am not able to define and use with array, would be helpful if any of you can help me to get it corrected.
Happy weekend!
Thanks for your help!
Regards Suresh