Auto save
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Auto save

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    Isle of Man
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi I was wondering if somebody could help me make a macro so every monday my workbook saves as a seperate file everyweek.
    e.g on modnay the 13th feb it saves the file 02/13/02
    and the week after it says 02/20/02.
    Please could somebody help me on this topic, much appreciated thank you.

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Try the following code:

    Private Sub Workbook_Open()
    Dim TodayDate As Date
    TodayDate = Date
    If WeekdayName(Weekday(TodayDate)) = "Monday" _
    Then ThisWorkbook.SaveAs Filename:=Format(TodayDate, "mm_dd_yy")
    End Sub

    Put it in the module for your workbook.
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com