Problem with PasteSpecial using LINK=True

S

SHewes

Hello,

I'm trying to find the code as to verify the source file of a PasteSpecial
Link.

To paste, I used the following line :
Selection.PasteSpecial Link:=True,
DataType:=wdPasteOLEObject,
Placement:=wdInLine,
DisplayAsIcon:=False

What happens is that when I copy the file to another folder, sometimes the
source PATH does not follow. So I want to make sure that all the PasteSpecial
Link have the same PATH and FILENAME.

I looking for a FOR EACH ... LOOP that scans all the PasteSpecials.

Thanks
 
S

SHewes

Bullseye Macropod.

Thank
A+

-------------------
S. Hewes


macropod said:
Hi S. Hewes,

You won't find 'PasteSpecials' after the event. What you will find for linked OLE objects is (usually) a LINK field. For code to
update the paths, see:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=261488
and:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=670027

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

SHewes said:
Hello,

I'm trying to find the code as to verify the source file of a PasteSpecial
Link.

To paste, I used the following line :
Selection.PasteSpecial Link:=True,
DataType:=wdPasteOLEObject,
Placement:=wdInLine,
DisplayAsIcon:=False

What happens is that when I copy the file to another folder, sometimes the
source PATH does not follow. So I want to make sure that all the PasteSpecial
Link have the same PATH and FILENAME.

I looking for a FOR EACH ... LOOP that scans all the PasteSpecials.

Thanks
 

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