LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
TroutKing
 
Posts: n/a
Default When I "Save As" I cannot get

I wrote a macro to save my documents with the file name that I need, but I
cannot get Excel to prompt me for the desired folder - I always have to
hardcode the folder. What am I doing wrong?

Sub Save()

'NAME AND SAVE SPREADSHEET
ChDir "C:\ExcelOutput\"
NEWFILENAME = ActiveSheet.Cells(1, 2).Value
ActiveWorkbook.SaveAs Filename:=NEWFILENAME & " " & Format (Date,
"mm.dd.yy") & ".xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

End Sub
 
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 as html writenick Excel Discussion (Misc queries) 0 January 13th 05 05:25 PM
Excel 2002 crashing during "Save As" action. Andy T Excel Discussion (Misc queries) 1 January 4th 05 11:34 PM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM
Missing "Save" and "Save As" functions EMSchon Excel Discussion (Misc queries) 2 December 27th 04 08:01 PM
Add favorites to "Save" window Anne Setting up and Configuration of Excel 1 December 7th 04 07:19 PM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"