Saving to "open" directory

9

9119

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!

:confused:
 
N

nickysquawkes

You could try in VBA:

ActiveWorkbook.SaveAs CurDir & "filename"

Not sure if this is what your after
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top