• Looking for a smarter way to manage your heating this winter? We’ve been testing the new Aqara Radiator Thermostat W600 to see how quiet, accurate and easy it is to use around the home. Click here read our review.

Word macro

Joined
24 Jul 2003
Messages
24,294
Reaction score
1,420
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
 
Back
Top