I am using a for loop to process data of 300 SKUs with some of them having SKU code as purely numeral. The raw data for each SKU is in separate file with both the workbook and worksheet name same as the SKU code. Error I am facing is index out of range as in:
Workbooks(wbnamex).Sheets(wbnamex).Cells(k, 2)
wbnamex contains SKU code and the ones as numerals are resulting in error. The object workbook is taking it as serial number rather than name.
How to go pass the purely numeral SKU code as String?