+ Reply to Thread
Results 1 to 2 of 2

Save a sheet as an excel file

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2004
    Posts
    2

    Save a sheet as an excel file

    with multiple sheets in a work book, I want to create a button to save just only a particular sheet. Your help is appreciated. Thank you.

    John

  2. #2
    Registered User
    Join Date
    10-09-2003
    Posts
    25
    I have this macro (help from other Excel gurus) that save the current active sheet as an Excel file with today's date. Hope this is similar to what you are looking for.


    Sub FromSheetoWorkbook()
    '
    ' Create individual workbook from active sheet Macro
    '
    Dim Fname, strMessage As String
    'Save active sheet as a workbook with today's date
    Fname = ActiveSheet.Name & "-" & Format(Date, "ddmmmyy")
    ActiveSheet.Copy
    ActiveWorkbook.SaveAs Filename:=Fname & ".xls"
    ActiveWorkbook.Close SaveChanges:=False
    ' Display saved message
    strMessage = Fname & " saved in " & vbCrLf & vbCrLf & CurDir
    MsgBox strMessage, vbInformation, "File Saved!"
    '
    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