Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Saving to "open" directory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
9119 - 18 Jan 2006 12:16 GMT
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:

Signature

9119

nickysquawkes - 19 Jan 2006 13:51 GMT
You could try in VBA:

ActiveWorkbook.SaveAs CurDir & "filename"

Not sure if this is what your after

Signature

nickysquawkes

9119 - 19 Jan 2006 14:39 GMT
Thanks Nicky... that works fine for my purposes. :)

Signature

9119

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.