A simple macro to copy the cell above, in a table. It works, but only reliable sometimes.
Problem is eg that the arrowed <--- lines make the insertion pont (ie the cursor) go up or down two rows instead of one.
So I need a reliable way of going up or down one row in a table.
??
Selection.SelectCell
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.MoveUp Unit:=wdLine, Count:=1 ' <-----
Selection.SelectCell
Selection.Copy
Selection.MoveDown Unit:=wdLine, Count:=1 ' <-----
Selection.Paste
Selection.MoveRight Unit:=wdCharacter, Count:=1
Problem is eg that the arrowed <--- lines make the insertion pont (ie the cursor) go up or down two rows instead of one.
So I need a reliable way of going up or down one row in a table.
??
Selection.SelectCell
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.MoveUp Unit:=wdLine, Count:=1 ' <-----
Selection.SelectCell
Selection.Copy
Selection.MoveDown Unit:=wdLine, Count:=1 ' <-----
Selection.Paste
Selection.MoveRight Unit:=wdCharacter, Count:=1