Word macro

Joined
24 Jul 2003
Messages
24,294
Reaction score
1,419
Location
London
Country
United Kingdom
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
 
Sponsored Links
Back
Top