Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default change default file path in Save As dialog box

Hi,

Need expert advice he How can I change the default file path
appearing in the Save-As dialog box using VBA? I have a workbook
application stored at, say, C:\MyProgram, I want the user save their
file automatically at a different location, say, c:\my document,when
they click Save or Save As

Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default change default file path in Save As dialog box

Hi
use the statement
chdir "c:\my document"

before invoking the dialog


--
Regards
Frank Kabel
Frankfurt, Germany


charles wrote:
Hi,

Need expert advice he How can I change the default file path
appearing in the Save-As dialog box using VBA? I have a workbook
application stored at, say, C:\MyProgram, I want the user save their
file automatically at a different location, say, c:\my document,when
they click Save or Save As

Thanks much in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default change default file path in Save As dialog box

Frank,
Thanks, but I found it not working...when I click File, Save As, the
default path is still the one where the workbook is opened. I want to
define a different one.
Regards,
Charles


"Frank Kabel" wrote in message ...
Hi
use the statement
chdir "c:\my document"

before invoking the dialog


--
Regards
Frank Kabel
Frankfurt, Germany


charles wrote:
Hi,

Need expert advice he How can I change the default file path
appearing in the Save-As dialog box using VBA? I have a workbook
application stored at, say, C:\MyProgram, I want the user save their
file automatically at a different location, say, c:\my document,when
they click Save or Save As

Thanks much in advance.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default change default file path in Save As dialog box

From a reply to a very similar question:

Since xl2k (IIRC), if you open a file, excel will show you that file's folder
when you do a file|saveAs.

And since you're going to that OLK5 location, I'm betting you're reading an
attachment in your email--that's where your email stores the file when you click
on it to read it.

I don't know of a way to change this behavior.

(But I'm usually glad it works this way. If I open one of my own files and do a
File|SaveAs, I usually want to save it in the same folder.)

And I do agree that it's a pain with attachments to emails.

But hope isn't lost

Since you're using xl2003, you can do this:

Next time you're in the File|open (or File|SaveAs) dialog, traverse to your
favorite folder (but just select it--don't go into it)

Then click Tools|Add to My Favorites.

Now, you can just click on that shortcut in the "look in" toolbar (left hand
side of the File|open/SaveAs dialog).

====
If you're using xl2k: You could use an addin from MS:

It's called Places.exe that allows you to update the places list.

http://support.microsoft.com/default...;en-us;Q253338
INFO: Office Developer Samples and Tools Available for Download (Q253338)

Scroll about halfway down.

charles wrote:

Hi,

Need expert advice he How can I change the default file path
appearing in the Save-As dialog box using VBA? I have a workbook
application stored at, say, C:\MyProgram, I want the user save their
file automatically at a different location, say, c:\my document,when
they click Save or Save As

Thanks much in advance.


--

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
Can't find AutoRecover file in path specified in Options dialog. Paul Ponzelli Excel Discussion (Misc queries) 4 November 17th 05 09:33 PM
Default Cell Values & Save Changes Dialog Box timg Excel Discussion (Misc queries) 1 November 4th 05 09:16 PM
GetOpenFilename Dialog default path Arthlan Excel Programming 1 June 3rd 04 09:19 PM
Can I change ExCels default save path for saving add-ins ? RandyDtg1 Excel Programming 3 May 16th 04 04:07 PM
Getting the full path when from a File Open Dialog Box Ric Payne Excel Programming 3 July 10th 03 04:58 PM


All times are GMT +1. The time now is 10:26 PM.

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"