S
stevewy
If I have a selection of rows in the middle of a table and I want a
macro to move them downwards so that they are the last rows in the
table, no matter how big the table is, I can do this with VBA:
NumRows = Selection.Tables(1).Rows.Count
For K = 1 To NumRows
Selection.Range.Relocate wdRelocateDown
Next K
But if I have a column selected and want to move it to the far right of
the table, so it becomes the last column, how can I achieve this easily
in VBA? There does not appear to be a wdRelocateRight or Left
command....
Steve Wylie
macro to move them downwards so that they are the last rows in the
table, no matter how big the table is, I can do this with VBA:
NumRows = Selection.Tables(1).Rows.Count
For K = 1 To NumRows
Selection.Range.Relocate wdRelocateDown
Next K
But if I have a column selected and want to move it to the far right of
the table, so it becomes the last column, how can I achieve this easily
in VBA? There does not appear to be a wdRelocateRight or Left
command....
Steve Wylie