inserting paths

J

Jonathan West

Hi Kathryn,

You can copy & paste the path from any source of text, such as the address
bar in Windows explorer, without the assistance of a macro.

But I suspect there is more to your question than that, and that you are
wanting to automate the process of adding multiple paths to the names of
multiple graphics.

If so, could you explain in a bit more detail what you are trying to
achieve, and how the code might know which path should go with which
graphic.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 
K

Kathryn A. DeArruda-Lenihan

I am very new and would like ome guidance. I am looking to add paths to
external graphics. The paths would be like T:/123/001000100.jpg. Of course
they would all be diferent, but instead of typing them in, is there a way to
perhaps have the path copies from windows explorer or something?

I am using both word2k and xp.

Thanks
 
K

Kathryn A. DeArruda-Lenihan

What it boils down to is there are a number of graphics for each document we
will be handling. The file names are numeric (010010001.jpg) and
alphanumeric (010A000A.jpg). In the wprd documents we have to manually enter
the network path and name of the figure. Such as
T:/Essex/Test/01010001.jpg. This leads to many errors. We were open to place
the cursor in the document and hit a button that says something like capture
path and the file open (or similar) dialog box would appear and we would
select the graphic file and hit ok. The path would then be copied to the
clipboard to be pasted or automatically pasted into the document. It is not
know right awa where the figures will be referenced so we can not do any
"batch" processing.

I hope that explains more
 
M

Mark Tangard

Kathryn,

This is still not clear. Will you have the images already in
the document? Will they be in a folder from which you want
to get both the images and their full paths to insert into
the document? Tell us how you envision it all starting and
how you want it to finish.
 
K

Kathryn A. DeArruda-Lenihan

The images are not in the document itself, they are in the same folder as
the document. We are inserting a path to them so that when we convert the
documents to XML, they will appear as thumbnails and link to the pictures.
 
M

Mark Tangard

OK, this gets us closer. So I gather you want to see the folder
listing, select a file, and have its full path inserted into the
document. Like this?

With Dialogs(wdDialogInsertPicture)
If .Display = -1 Then Selection.Range.InsertAfter .Name
End With
 

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