http://qs1969.pair.com?node_id=795885


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.

Replies are listed 'Best First'.
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.