Forget that 'code'

Look here first: https://www.snb-vba.eu/VBA_Arrays_en.html