Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How can I copy and paste a range of tables in Word with Win32::OLE?

by jrsimmon (Hermit)
on Sep 16, 2009 at 20:18 UTC ( [id://795704]=note: print w/replies, xml ) Need Help??


in reply to How can I copy and paste a range of tables in Word with Win32::OLE?

Record a macro of the actions you want performed in Word, then convert the resulting vbscript to perl and Win32::OLE.
  • Comment on Re: How can I copy and paste a range of tables in Word with Win32::OLE?

Replies are listed 'Best First'.
Re^2: How can I copy and paste a range of tables in Word with Win32::OLE?
by Bloodnok (Vicar) on Sep 16, 2009 at 21:50 UTC
    ... achieving the conversion using this guide, or possibly the VBScript utility distributed with the ActiveState PDK. ... depending on your Windoze distribution (of choice).

    A user level that continues to overstate my experience :-))
Re^2: How can I copy and paste a range of tables in Word with Win32::OLE?
by romandas (Pilgrim) on Sep 17, 2009 at 13:40 UTC

    Using this method (via the Macro recorder) just shows me how to use Selection to obtain one table, whereas if I try to select multiple tables, the macro is written to grab the text between them as well, which is not what I'm after. Do you have any insight into how to use a range of multiple tables with the Tables collection?

    Put another way, how can I specify a range of 1..lastTable using the Tables collection instead of looping? Dave Roth has an excellent example using Paragraphs, but I don't seem to be able to use Tables in the same way, likely a result of my own misunderstanding.

        Yes, I read through the guide, but it doesn't mention how to handle Ranges at all. It (the guide) would be quite useful if I had working VBA code to translate, but I don't even have that at this point.

        The utility is a rather expensive option ($295 for a license?), so no, I haven't tried it. I realize it mentions trying it for free for 21 days, but that also comes with its own hassles.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://795704]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2024-04-23 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found