Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jun 2001
    Location
    Vancouver, Br. Columbia
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display Insert Picture dialog (Word 2000)

    I need to display Word's Insert/Picture dialog box, pointing to a specific directory. I can display the dialog, but can't figure out how to change 'look in' to a specific folder.

    Thanks,
    Adri

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Display Insert Picture dialog (Word 2000)

    You can set the default location for pictures to that folder (directory) temporarily:

    Dim strPicturePath As String
    ' Store current path
    strPicturePath = Options.DefaultFilePath(Path:=wdPicturesPath)
    ' Set picture path
    Options.DefaultFilePath(Path:=wdPicturesPath) = "specific path here"
    ' Show dialog
    Application.Dialogs(wdDialogInsertPicture) .Show
    ' Restore old path
    Options.DefaultFilePath(Path:=wdPicturesPath) = strPicturePath

  3. #3
    Star Lounger
    Join Date
    Jun 2001
    Location
    Vancouver, Br. Columbia
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display Insert Picture dialog (Word 2000)

    Hans...thank you so much, this is exactly what I needed...works perfectly!

    Adri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •