Inserting Pictures--default display

L

Let2Editor

I want to insert a picture from a particular folder. The folder is not the
'default' folder where Word apparently thinks my pictures are stored.

Here is the code I am currently using:
--------
ChDir "C:\other picture files"
With Dialogs(wdDialogInsertPicture)
.name = "*.jpg"
.Show
End With
--------
No matter the variations on the above, the initial dialog is my default
pictures folder (currently set to "C:\Clip Art"). How can I get the "C:\other
picture files" location to initially display in this routine.

Thanks,

Ed

P.S. When I run 'CurDir' within the "With" routine, it displays properly as
"C:\other picture files"
 
R

Roy Lasris

Try:

Options.DefaultFilePath(wdPicturesPath) = [path of your selection]

before the display. The chdir has no effect. Word looks to the value of
wdPicturesPath to select the default picture open folder.

Roy
 

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