Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Save As location

Hi Steve

You can use ChDirNet

See how I use it in macro Example 6 on this page
http://www.rondebruin.nl/copy3.htm#select




--

Regards Ron de Bruin
http://www.rondebruin.nl



"Steve C" wrote in message
...
In a template I've created, I want to program a button for users to save
their work to a specific file location on our network. While I can get
the
Save As dialog box to appear, my attempts to get the location correct have
failed. Here's what I've tried so far:

ChDir "G:\Data\Managers"
Application.Dialogs(xlDialogSaveAs).Show
RESULT: Opens Save As, but not to the correct folder

I've also tried the BeforeSave event (placing the code in the template's
workbook module):

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
ChDir "G:\Data\Managers"
Application.Dialogs(xlDialogSaveAs).Show
RESULT: Opens Save As, but not to the correct folder.

Obviously, my ChDir code isn't the answer. Any suggestions? Thanks!
--
Steve C


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
Save to a location other than default RMires Excel Discussion (Misc queries) 6 June 4th 09 02:55 PM
Save to a certain location N1KO Excel Discussion (Misc queries) 3 May 13th 09 03:30 PM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
SAVE IN LOCATION gringolocoed Excel Worksheet Functions 1 August 11th 07 03:28 AM
Save File to Another Directory, but not change Users File Save location Mike Knight Excel Programming 1 May 28th 04 09:06 PM


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