+ Reply to Thread
Results 1 to 3 of 3

Saving to "open" directory

  1. #1
    Registered User
    Join Date
    01-18-2006
    Posts
    2

    Question Saving to "open" directory

    I need to create a "save file" command in my macro which allows the file to save to the current directory to prevent "run errors" if the end user has a different directory tree.

    E.g. I may be using a default c:\ directory, but the spreadsheet user may be on say h:\ directory on a network. The save command needs to be able to save to the open directory.

    Any advice appreciated!


  2. #2
    Registered User
    Join Date
    01-19-2006
    Posts
    10
    You could try in VBA:

    ActiveWorkbook.SaveAs CurDir & "filename"

    Not sure if this is what your after

  3. #3
    Registered User
    Join Date
    01-18-2006
    Posts
    2
    Thanks Nicky... that works fine for my purposes.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1