Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: GetOpenFilename; how do I access the working path?

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    When I do a GetOpenFilename(), it works ok, but I want to be able to choose the path
    that first pops up when this method is used.
    (Its the last path changed to by the user)

    How can I access the path that automatically is searched when a Getopenfilename is used?

    Thanks.

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Before the getopenfilename(), insert the following 2 lines:

    ChDrive ("C:")
    ChDir ("C:temp")
    Application.GetOpenFilename


  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    correction, only 1 '' instead of 2

  4. #4
    Board Regular
    Join Date
    Feb 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    I dont understand the correction, do you mean 1 of the back slashes each time, or 2 backslashes 1 time?

    Oh, I guess I'll figure it out! Thanks BTW!

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    yes, only 1 slash instead of 2. for some reason, this forum converted my 1 slash into 2.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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