in reply to Win32::OLE Find in Table method
If $table stores the table object in Word, then the following code looks for a particular $pattern:
for my $i (1..$table->Rows->Count) { for my $j (1..$table->Columns->Count) { my $text = $table->Cell($i,$j)->Range->Text; print "($i:$j) $text\n" if $text =~ /$pattern/; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE Find in Table method
by DVCHAL (Novice) on Oct 29, 2013 at 09:27 UTC | |
|
Re^2: Win32::OLE Find in Table method
by DVCHAL (Novice) on Oct 29, 2013 at 11:02 UTC | |
by Anonymous Monk on Oct 29, 2013 at 12:05 UTC | |
by hdb (Monsignor) on Oct 29, 2013 at 11:30 UTC |