in reply to Re: Word tables, OLE, perl, and me.
in thread Word tables, OLE, perl, and me.

It looks as if $selection did not get set. Are you sure $selection = $table->Select returns a "selection" object on which you can call the MoveUp(wdLine,1) method?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: Word tables, OLE, perl, and me.
by binf-jw (Monk) on Feb 03, 2009 at 10:02 UTC
    To get the selection you do the following:
    $table->Select; my $selection = $word->ActiveWindow->Selection;

    - John