can't change default file location

P

Paul HK

When I click "open file", Excel always open "C:\Program
Files\Common Files\Microsoft Shared\PROOF". I have
changed the "Tools-Options-General-Default file location"
to "My Documents" but still no effect. Please help.
 
P

Paul HK

Yes and I also re-install Office and try other file
location (e.g. c:\ etc) but still fail. Thanks.
 
D

Dave Peterson

This is one of those settings that's kept in the windows registry.

For me (win98/xl2002), it's in:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options
under a Stringvalue of: DefaultPath

You could use:
windows start button|run|regedit
follow the path (adjust 10.0 to your version of excel)
double click on DefaultPath and change it there

If you're hesitant, back up the registry before making any change. In fact,
that's probably a good idea anytime!

I have:
C:\my documents\excel
for my entry.

Maybe there's some permissions to the windows registry that's stopping you????

=====
At work, if I'm not connected to the network, my default path reverts to
somewhere on my C:\ drive. When I logon and I'm connected to the network, I
want it on my U: (home drive).

I've got a workbook in my XLStart folder that does the work for me. Each time I
open excel, this workbook loads and tries to fix my default folder. Then closes
(I don't need it anymore).

This is the little macro that runs on opening:

Option Explicit
Sub auto_open()

'Dim FSO As Scripting.FileSystemObject
Dim FSO As Object

Const myDefaultFolder As String = "U:\my u documents\excel"

'Set FSO = New Scripting.FileSystemObject
Set FSO = CreateObject("scripting.filesystemobject")

With Application
If FSO.FolderExists(folderspec:=myDefaultFolder) Then
.DefaultFilePath = myDefaultFolder
ChDrive myDefaultFolder
ChDir myDefaultFolder
Else
MsgBox "DefaultFilePath not reset, still: " & .DefaultFilePath
End If
End With
ThisWorkbook.Close savechanges:=False

End Sub

If nothing else works, you could use something like this.
 
P

Paul HK

Many thanks. I have checked the registry key that is the
same as "Options" setting. Finally, I uninstall Office,
remove registry, remove office folder and reinstall
office again. Thanks for you help.
 
D

Dave Peterson

Glad you got it working, but next time (if there is a next time), maybe you
could try to just re-register excel.

maybe that'll update the registry enough:

Close Excel and
Windows Start Button|Run
excel /unregserver
then
Windows Start Button|Run
excel /regserver

The /unregserver & /regserver stuff resets the windows registry to excel's
factory defaults
 
P

Paul HK

Thanks. I will remember your suggestion. Is your method
suitable in other microsoft product, e.g. Word, IE etc ?
 
D

Dave Peterson

I've used it with word. not sure with MSIE.

Paul said:
Thanks. I will remember your suggestion. Is your method
suitable in other microsoft product, e.g. Word, IE etc ?
 

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