Discussion:
Displaying Insert/Picture dialog box
(too old to reply)
Adri
2005-01-24 18:37:01 UTC
Permalink
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.
--
Thanks...
Adri
Dave Lett
2005-01-24 19:47:15 UTC
Permalink
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
Post by Adri
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
Dialogs(wdDialogInsertPicture).Show to display the dialog.
--
Thanks...
Adri
Adri
2005-01-25 16:23:07 UTC
Permalink
Thanks Dave, works perfectly.
Post by Dave Lett
Hi Adri,
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
Post by Adri
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
Dialogs(wdDialogInsertPicture).Show to display the dialog.
--
Thanks...
Adri
Continue reading on narkive:
Loading...