Results 1 to 6 of 6

Save Active Sheet to another Workbook

Threaded View

Wes28 Save Active Sheet to another... 11-03-2008, 11:02 AM
protonLeah Try this mod: Sub... 11-04-2008, 01:22 AM
Wes28 protonLeah, Thankyou so... 11-04-2008, 08:43 AM
royUK Use the hour of saving as... 11-04-2008, 08:51 AM
Wes28 royUK, Thanks for your... 11-04-2008, 09:18 AM
Wes28 Thanks for all the Help I... 11-04-2008, 11:15 AM
  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    Ohio
    Posts
    29

    Save Active Sheet to another Workbook

    Hi guys.

    Was curious if there is a way one could. Copy the active sheet that is open in a work book and save it to another file with the date in the name?

    For example Report_11-03-08.xls

    The only problem I see with this. How could I also make it append a letter to report if the file already exits

    Example saved as
    Report1_11-03-08.xls

    Then just continue incrementing.

    Below is all I've come up with so far.

    Thanks

    Sub CopySave()

    Application.ScreenUpdating = False

    ActiveSheet.Copy

    Application.DisplayAlerts = False

    ActiveSheet.SaveAs Filename:=ThisWorkbook.Path & "/" & "Report_" & Format(Date, "mm_dd_yy") & ".xls"


    ActiveWorkbook.Close

    Application.DisplayAlerts = True
    Application.ScreenUpdating = True

    End Sub
    Last edited by Wes28; 11-04-2008 at 11:16 AM.

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