Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Save as with Default location

Hi. I have the following code, but it doesn't seem to work. I get
the dialog box for Save As, but it is not bringing in the default
directory I have specified. Any idea what I am doing wrong? Thanks!

Sub test()

sStr = "C:\Documents and Settings\Files\workFiles\"
ChDrive sStr
ChDir sStr
On Error Resume Next
Application.Dialogs(xlDialogSaveAs).Show

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Save as with Default location

Steve,

Never tested it by creating your path on my machine but with a valid path on
my machine works fine

Mike

"Steve" wrote:

Hi. I have the following code, but it doesn't seem to work. I get
the dialog box for Save As, but it is not bringing in the default
directory I have specified. Any idea what I am doing wrong? Thanks!

Sub test()

sStr = "C:\Documents and Settings\Files\workFiles\"
ChDrive sStr
ChDir sStr
On Error Resume Next
Application.Dialogs(xlDialogSaveAs).Show

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Save as with Default location

On my machine it always defaults to the folder that was last used in a
Save.

On Mar 21, 2:26*pm, Mike H wrote:
Steve,

Never tested it by creating your path on my machine but with a valid path on
my machine works fine

Mike



"Steve" wrote:
Hi. *I have the following code, but it doesn't seem to work. *I get
the dialog box for Save As, but it is not bringing in the default
directory I have specified. *Any idea what I am doing wrong? *Thanks!


Sub test()


sStr = "C:\Documents and Settings\Files\workFiles\"
ChDrive sStr
ChDir sStr
* On Error Resume Next
* Application.Dialogs(xlDialogSaveAs).Show


End Sub- Hide quoted text -


- Show quoted text -


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
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
Default save as location in Microsoft Query ngg Excel Discussion (Misc queries) 0 August 8th 08 08:43 PM
default save location on network Steve_n_KC Excel Discussion (Misc queries) 1 August 23rd 07 01:38 AM
Default Save Location ianripping[_72_] Excel Programming 4 June 22nd 04 02:34 PM


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