+ Reply to Thread
Results 1 to 6 of 6

Macro to File/Save as "Numbers as of [today's date]" on desktop

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Macro to File/Save as "Numbers as of [today's date]" on desktop

    I think you also need a comma after the file name and before FileFormat=....

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Macro to File/Save as "Numbers as of [today's date]" on desktop

    I'm lost on this one. I want to do 2 things here

    1. Replace "today's date with the current date, I know that the "DATE" function needs to be used, but I also know that if a comma or () or whatever other character I need is just 1 off, it won't work. Can anyone tell me exactly is wrong here?

    2. How do you record closing a workbook with a macro when there's no way to click on "stop" to stop the macro after it's been closed? What is the exact code for this and where do I put it in the relation to the "File/Save As" macro?

    Thanks much

    Sub File_SaveAs()
    '
    ' File_SaveAs Macro
    ' Macro recorded 2/17/2009 by ...
    '
    
    '
        ActiveWorkbook.SaveAs Filename:= _
            "D:\Documents and Settings\Smith\Desktop\Numbers as of today's date.xls" _
            , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
            ReadOnlyRecommended:=False, CreateBackup:=False
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1