Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving to the cell directly above current cursor position 1

Status
Not open for further replies.

ftpdoo

Programmer
Aug 9, 2001
202
GB
Hi,

I wish to select the current cell and extend up into the cell above. I'm currently using:

'========================================================
.selection.moveup unit:=wdline, count := 1, Extend := wdExtend
'========================================================

This works fine but when I make Word not visible it selects the whole row.

Can anyone suggest an alternative method to do this??
maybe using the Range property?? (just an idea??)


Any help would be greatfully excepted!
Jonathan
 
i've tried both on to the application and window object, it works.

Application.Visible = False
'========================================================
Application.Selection.MoveUp unit:=wdLine, Count:=1, Extend:=wdExtend
'========================================================
Application.Visible = True

there is no merged cell, or something else?
will you insert in more code, or fe. the shape of the table (<tr><td> ...)
 
Thnx for the help.. Must be something else I'm doing. But when ever I run this line of code the entire row is selected right to the end!!

Have you installed any service packs for Word 2000?? (sorry I know its a long shot!)
 
thx for the star :)
no, i have no any.
sorry..
if you want me to try to solve this problem (now i have not any idea) you can send the denuded doc to the
ide@altavista.net
address

(ps GMT+1 area)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top