Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Save to a location other than default | Excel Discussion (Misc queries) | |||
Macro - save to current location vs excel default location | Excel Discussion (Misc queries) | |||
Default save as location in Microsoft Query | Excel Discussion (Misc queries) | |||
default save location on network | Excel Discussion (Misc queries) | |||
Default Save Location | Excel Programming |