Working with Word ranges

J

Jess

In Word 2k3 automated by VB.Net, is there any way of copying &
pasting/inserting ranges without using the clipboard?

My problem being I need to duplicate a template page(s) (created by a user)
many times, I am currently using the clipboard to do this, but if I run
multiple threads or any other program uses the clipboard, the contents are
lost. Also it destroys whatever else the user may have been keeping in the
clipboard.

All I seem to be able to do is create a reference to an existing range in
the document, and I'm not aware of any method to import one range into
another.

Any help appreciated!
Jess (MSDN Subscriber)
 
J

Jonathan West

Hi Jess,

Look the the VBA help for the FormattedText property, which allows you to
copy formatted text between documents without using the clipboard. You'll
need of course to adapt the code sample there to VB.NET.
 
J

Jess

Hi Jonathan,

Thanks for the reply, any idea if this will work if there are tables/images
in the range?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top