Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Path not always correct (WinXP / Word2003 NL)

    I've written a little routine to load a template in Word for editing and attached it to a commandbar button. It worked fine in Win98 / Word97:

    Sub LoadDot()
    Dim strPath As String
    strPath = Options.DefaultFilePath(wdCurrentFolderPath)
    ChangeFileOpenDirectory Options.DefaultFilePath(wdUserTemplatesPath)
    With Dialogs(wdDialogFileOpen)
    .Name = "*.dot"
    .Show
    End With
    ChangeFileOpenDirectory strPath
    End Sub

    In WinXP / Word2003 however, in about 25% of all cases the dialog opens in the default documents path instead. When I close the dialog with Cancel and click on the button again, the dialog is showing the desired path. Any idea's why and how to work around this?

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

    Re: Path not always correct (WinXP / Word2003 NL)

    I fear that Klaus Linke's comment in <post#=384611>post 384611</post#> applies here.

  3. #3
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Path not always correct (WinXP / Word2003 NL)

    <img src=/S/bummer.gif border=0 alt=bummer width=15 height=15>
    Thanks Hans.

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Christchurch, New Zealand
    Posts
    250
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Path not always correct (WinXP / Word2003 NL)

    Hi Jan, did you ever find a way around this one? We are experiencing it more and more too.

  5. #5
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Path not always correct (WinXP / Word2003 NL)

    Hi Karen,

    Unfortunayely. no. I also tried to comment out the path changing lines and change the .Name line in
    <font face="Georgia">.Name = Options.DefaultFilePath(wdUserTemplatesPath) & "*.dot"</font face=georgia>
    but that didn't help either. This always opens the My Documents folder.
    So I had to stick with the code in this thread and get used to the Cancel & Try again method. <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

Posting Permissions

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