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 / January 2005

Tip: Looking for answers? Try searching our database.

Displaying Insert/Picture dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adri - 24 Jan 2005 18:37 GMT
I need to display the Insert/Picture dialog box, pointing to a specific
directory. I can get the dialog to display, but can't figure out how to
change 'look in' to the directory I want. Any suggestions?  I'm using:  
Dialogs(wdDialogInsertPicture).Show   to display the dialog.

Signature

Thanks...
Adri

Dave Lett - 24 Jan 2005 19:47 GMT
Hi Adri,

You can use something like the following:

Dim sPixFolder As String
''' store the default pictures location
sPixFolder = Options.DefaultFilePath(wdPicturesPath)
''' change the default pictures location
Options.DefaultFilePath(wdPicturesPath) = "C:\Test\"
''' open the dialog box
Dialogs(wdDialogInsertPicture).Show
''' restore the default pictures location
Options.DefaultFilePath(wdPicturesPath) = sPixFolder

HTH,
Dave

> I need to display the Insert/Picture dialog box, pointing to a specific
> directory. I can get the dialog to display, but can't figure out how to
> change 'look in' to the directory I want. Any suggestions?  I'm using:
> Dialogs(wdDialogInsertPicture).Show   to display the dialog.
Adri - 25 Jan 2005 16:23 GMT
Thanks Dave, works perfectly.

> Hi Adri,
>
[quoted text clipped - 17 lines]
> > change 'look in' to the directory I want. Any suggestions?  I'm using:
> > Dialogs(wdDialogInsertPicture).Show   to display the dialog.
 
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.