in reply to MS-Word OLE and Joining Tables
Update 1: Showing the "in <object>" syntax - this is what you seem to be struggling with.use Win32::OLE qw(in valof with OVERLOAD); Win32::OLE->Option(_NewEnum => 1); for my $oPara (in $Word->ActiveDocument->Paragraphs) { my $oRange = $oPara->Range; next unless $oRange->Information(wdWithInTable) ; $oRange = $oRange->Next; next if $oRange->Information(wdWithInTable) ; $oRange->Delete() if $oRange->Text eq vbCr; }
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MS-Word OLE and Joining Tables
by BrianP6 (Initiate) on Dec 30, 2012 at 19:32 UTC | |
|
Re^2: MS-Word OLE and Joining Tables
by BrianP6 (Initiate) on Dec 31, 2012 at 16:55 UTC |