in reply to MS-Word OLE and Joining Tables

BrianP6:

OK, you've converted the code as shown. What happens when you run it? (I can't run it because I don't have the necessary infrastructure here.) The error message and/or other symptoms might have the clue needed to help solve your problem.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: MS-Word OLE and Joining Tables
by BrianP6 (Initiate) on Dec 30, 2012 at 19:27 UTC

    Hi Roboticus, You are absolutely right, my apologies. When I run my code I get the error:

    Can't locate object method "Range" via package "Count"

    So, I printed out the contents of $oPara and I got the word "Count" out of it .... so I guess it's not a hash.

    If I remove the hashing and turn it back to "foreach my $oPara ($Word->ActiveDocument->Paragraphs)", then the error message I get is:

    Can't call method "information" on an undefined value"

    Thanks for taking the time to look