Default Folder Location

David Simon

New Member
Joined
Dec 16, 2004
Messages
3
Hello,
I posted this question a month ago and didn't get any
(helpful) responses, so I'm trying again. It doesn't
seem like a difficult question.

I'm running Excel 2002 on Windows XP Professional.

Here's my situation:
I open an existing Excel file by clicking on it in Windows Explorer.
I then (in Excel) click "Save-As" to rename it.

My problem:
The folder location that the "Save-as" defaults to is the
default start-up folder location -- not the location
of the file I just opened.

In my old Excel (2000), the Save-as would default
to the same folder as the existing file.

How can I fix this?

Thanks in advance,
~David
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi David,

Yes, this is something that I've been annoyed with for some time, but I don't believe there is any built-in solution. So here are a couple workarounds:

1. If you want Excel to change the working folder to the path of the file you are opening, open it with the Excel File > Open menu rather than opening the file with a double-click. If the file is already open, you can go to File > Open, browse to the folder containing the file, and then Cancel. Even though cancelled, the file open operation will set the working folder.

2. You can make it so that a particular file will automatically on opening (even via double-click) change the default file path to its location using the code:

Private Sub Workbook_Open()
Application.DefaultFilePath = ThisWorkbook.Path
End Sub

This code must be placed in the workbook's ThisWorkbook event code module. To do this, right-click on the Excel icon on left end of the Excel Worksheet Menu Bar, select View Code, and paste this code into the Code pane.
 
Upvote 0

Forum statistics

Threads
1,213,567
Messages
6,114,342
Members
448,570
Latest member
rik81h

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top