Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Default File Path

Hi Simon
May be keeping trace of Thisworkbook.Path with a variable in your macro
would fit your needs:
Dim OriginalPath$
OriginalPath = ThisWorkbook.Path
'Do dome stuff here
'reset path to the original (thisworkbook's)
ChDir(OriginalPath)


HTH
Cordially
Pascal


"Simon Shaw" a écrit dans le message
de ...
How do I reset the default file path?

My macro saves a text file out to a network path. But after the macro is

run, when i go to open another file, the default path is the network path
were the macro saved the file. How to I set the default path back to the
path prior to running my macro?


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
How to print file path in footer as default option for all files? Loisita Excel Worksheet Functions 2 September 19th 08 07:45 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
Setiiing up file name & path as a default setting on all sheets/ta Paul Canal Excel Discussion (Misc queries) 3 March 31st 06 01:07 PM
Default File Path Tom Ogilvy Excel Programming 0 July 8th 04 02:38 PM
Make "BeforeSave" event supply a default path and file name? quartz Excel Programming 1 April 22nd 04 08:08 PM


All times are GMT +1. The time now is 06:43 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"