[VBA][Excel learning] – Safest way of referencing worksheet is …


Excel VBA follows object hierarchy. We can refer a single Worksheet object in 3 ways with worksheet name with index number with codeName codeName remains the same even if worksheets are renamed or moved. But we can use CodeName only if it is in the same workbook.