Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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 ( #795885=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^2: How can I copy and paste a range of tables in Word with Win32::OLE?
Re^3: How can I copy and paste a range of tables in Word with Win32::OLE?
by jrsimmon (Hermit) on Sep 17, 2009 at 13:48 UTC

      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
Node Status?
node history
Node Type: note [id://795885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2014-08-28 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls