Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
code_master
 
Posts: n/a
Default Default file location keeps on changing

Hello,
" In excel where you can set the default file location to somewhere
you regually use."
When this is done, it works fine if you close out of excel and go back in.
If the users logs of and then logs back on. The settings are then lost.
Only just started a networking job so may look like a thick question but
your help will be appreciated.
Thanks
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think I would bring this up to my IT folks.

This is a setting that's kept in the windows registry. And for some (unknown to
me) reason, that setting is getting lost between logons.

======
Ah, one follow up...

Do you change this default location to a network drive? Is that network drive
_always_ available when you start excel?

For instance, if you're working on a laptop and change that location to your
home folder on your network drive--but then turn on the pc when you're not
connected to the network, excel will change it back to a location on your
harddrive (it has to use something).

If that's the case, you could use a macro that changes the default location (if
it's available) each time you open excel.

Put this in a General module of a new workbook. Then save this workbook in your
XLStart folder.

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 you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

code_master wrote:

Hello,
" In excel where you can set the default file location to somewhere
you regually use."
When this is done, it works fine if you close out of excel and go back in.
If the users logs of and then logs back on. The settings are then lost.
Only just started a networking job so may look like a thick question but
your help will be appreciated.
Thanks


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locked out of default file location Paul Donaldson Excel Discussion (Misc queries) 0 May 25th 05 10:57 PM
Locked out of default file location Paul Donaldson Excel Discussion (Misc queries) 2 May 25th 05 10:01 PM
import external data from changing file name nathan Excel Worksheet Functions 2 April 6th 05 04:39 PM
default file location maryj Excel Discussion (Misc queries) 2 March 3rd 05 06:09 PM
Add a default location for print to file in Excel. valders Excel Discussion (Misc queries) 0 December 30th 04 11:19 PM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"