Forum Discussion
Vinod_Gulia
8 years agoNew Contributor
Hi,
Exception is thrown at following line of code: -
Set aInfo1 = ExcelObj.CreateInfo(oExcel, fileName, aSheets)
Call aSheets.Add(vSheet, vSheet) seems correct. Key as Object and Item as Object get added into Dictionary.
tristaanogre
8 years agoEsteemed Contributor
Right, it's correct... but you have it added twice. Remove the second instance of the code to add to the aSheets.