I have refactored my code so that it allows me to be more flexible when inserting or moving columns by using absolute reference cells(x,y) instead of relative reference cell.offset(r,c).
For example:
Set employee = Info.Range("Info[Payroll]").Find(cell)
Schedule.Cells(x, 2) = _
employee.Offset(0,1)
becomes
Set employee = Info.Range("Info[Payroll]").Find(cell)
Schedule.Cells(x, Schedule.Range("Schedule[Name]").Column) = _
Info.Cells(employee.row, Info.Range("Info[Name]").Column)
This has slowed my code 100x when looping through 400 employees and extracting their schedule from their shift codes. Is the above bad practice/code and how should I improve performance?