I want to add a new column into a table after a certain header title in which the position will vary from time to time.
I can use this code to add a column at position 4 but the position depends on the header title which may changes.
Any clue on how to go on about this?
Worksheets(1).ListObjects("Table1").ListColumns.Add Position:=4
E.g.: Header title is in position 5, the code will add a new column in position 6. E.g.: Header title is now in position 7, the code will add a new column in position 8.