Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Inserting Pictures--default display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Let2Editor - 15 Nov 2004 12:36 GMT
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"
Roy Lasris - 15 Nov 2004 12:58 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.