Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Setting a default path name under Save As Dialog Box

Folks,
I am running a macro that should prompt the user to save the file under a
default path name. I would like the macro to save the file in, for example,
S:\Accounting\BSP 2006\File Name.

Could you please suggest a solution? Thank you.

Regards,
Shams.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Setting a default path name under Save As Dialog Box

With Application.FileDialog(msoFileDialogSaveAs)
.InitialFileName = "S:\Accounting\BSP 2006\"
.AllowMultiSelect = False
If .Show = False Then Exit Sub
ActiveWorkbook.SaveAs Filename:=.SelectedItems(1)
End With

Try that...

Die_Another_Day

Shams wrote:
Folks,
I am running a macro that should prompt the user to save the file under a
default path name. I would like the macro to save the file in, for example,
S:\Accounting\BSP 2006\File Name.

Could you please suggest a solution? Thank you.

Regards,
Shams.


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
Setting Default Save Path Corey Excel Programming 1 July 4th 06 01:17 AM
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
change default file path in Save As dialog box charles[_2_] Excel Programming 3 August 6th 04 03:03 AM
GetOpenFilename Dialog default path Arthlan Excel Programming 1 June 3rd 04 09:19 PM
Setting the default file name in the XLDialogSaveAs dialog box Nelson[_7_] Excel Programming 4 February 4th 04 02:29 AM


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