Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change directory back to "My Documents" after save as 1

Status
Not open for further replies.

GPM4663

Technical User
Aug 9, 2001
165
GB
Hi Everyone,
I have a spreadsheet that many users use that saves and emails automatically when a button is click. I use the following to save a copy of the spreadsheet:

ActiveWorkbook.SaveAs ("C:\FD " & strDate & " " & strDepot)

But I've noticed that afterwards if i open a new spreadsheet and go to save it it still defaults to the folder above instead of changing back to "My documents" Is there anyway I can rectify this?

Many thanks

GPM
 
Change path after save:
Code:
ChDrive "MyDocsDrive" ' you need this if active drive is different from drive with 'My documents'
ChDir Application.DefaultFilePath ' uses excel default path


combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top