Re: Saving File with macro



Something like:
ActiveWorkbook.SaveAs Filename:="C:\YourPath\FILM " &
Format(Date(),"mm-dd-yy")
or more dynamic like:
ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.Path & _
Application.PathSeparator & Left(ActiveWorkbook.Name, _
InStr(1,ActiveWorkbook.Name," ") - 1) & Format(Date(),"mm-dd-yy")

Charles

KelliInCali wrote:
I can't find the right code in any posts for this type of save. I just want
to save the current file to a specified location without specifying the
filename in the macro.
In the macro, the active file is a template that needs to be saved as a
spreadsheet. Ideally, I want to replace an existing file ("FILM 08-30-06")
using the current date in the format shown ("FILM 09-05-06").

tia -kelli

.



Relevant Pages

  • Re: Saving File with macro
    ... Gary's Student ... "KelliInCali" wrote: ... I run this same macro for various data sets so I need to be able to ... to save the current file to a specified location without specifying the ...
    (microsoft.public.excel.programming)
  • Complicated Save
    ... name but save to a specified location different from the original ... Macro I have written, uses the original name but saves over the ... original files and not to the new location. ... If TypeName= "Boolean" Then Exit Sub ...
    (microsoft.public.excel.programming)
  • Complicated Save
    ... name but save to a specified location different from the original ... Macro I have written, uses the original name but saves over the ... original files and not to the new location. ... If TypeName= "Boolean" Then Exit Sub ...
    (microsoft.public.excel.programming)
  • Word "autotype"
    ... How do I setup Word to automatically insert enterred text from one specified ... location to another specified location? ... know if I have to write a Macro, or if there is ... some way to use autotext for this. ...
    (microsoft.public.word.docmanagement)