maheshmurthi
New Member
I've written a few macros using VBA and always refer to a particular column using
Cells(x,y) or ActiveCell.offset(0,x)
However, when some new fields were added in-between or some fields were removed from the base file - everything went haywire
Is there anyway I can change my coding style and ensure that changing the sequence of the fields does not impact my code ?
Am stuck on this one really
Cells(x,y) or ActiveCell.offset(0,x)
However, when some new fields were added in-between or some fields were removed from the base file - everything went haywire
Is there anyway I can change my coding style and ensure that changing the sequence of the fields does not impact my code ?
Am stuck on this one really