k3vsmith
Member
I have a macro that is working perfectly - if the columns are in the correct order. Ive recently found there are users that produce the report with different column orders (same columns, just different order). I want to enhance the macro to first check if the columns are in same order. If not, readjust columns. Then perform rest of macro.
In the beginning of the macro the constants have been identified (in the correct order):
Const cnInputProjectID = "a1"
Const cnInputActivityId = "b1"
Const cnInputActivityStatus = "c1"
Const cnInputActivityName = "d1"
Const cnInputStartDate = "e1"
Const cnInputFinishDate = "f1"
Const cnInputActualStart = "g1"
Const cnInputActualFinish = "h1"
Const cnInputBaselineStart = "i1"
Const cnInputBaselineFinish = "j1"
Const cnSpacer = "k1"
Const cnInputFSMonth = "l1"
Const cnInputFFMonth = "m1"
Const cnInputASMonth = "n1"
Const cnInputAFMonth = "o1"
Const cnInputBSMonth = "p1"
Const cnInputBFMonth = "q1"
Can you please assist on how best to go about this?
In the beginning of the macro the constants have been identified (in the correct order):
Const cnInputProjectID = "a1"
Const cnInputActivityId = "b1"
Const cnInputActivityStatus = "c1"
Const cnInputActivityName = "d1"
Const cnInputStartDate = "e1"
Const cnInputFinishDate = "f1"
Const cnInputActualStart = "g1"
Const cnInputActualFinish = "h1"
Const cnInputBaselineStart = "i1"
Const cnInputBaselineFinish = "j1"
Const cnSpacer = "k1"
Const cnInputFSMonth = "l1"
Const cnInputFFMonth = "m1"
Const cnInputASMonth = "n1"
Const cnInputAFMonth = "o1"
Const cnInputBSMonth = "p1"
Const cnInputBFMonth = "q1"
Can you please assist on how best to go about this?