Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Francisca Perez   on Aug 09 In MS Office Category.

  
Question Answered By: Nora Martin   on Aug 09

Sub Extract_Current_Sheet_to_File()

Dim strName As String

Dim strPath As String



On Error Resume Next



strPath = ActiveWorkbook.Path ' <<<

strName = ActiveSheet.Range("A1").Value

Sheets(strName).Copy ' copy  this sheet  to a new workbook, must use no
parameters

ActiveWorkbook.SaveAs Filename:=strPath & "\" & strName

ActiveWorkbook.Close

End Sub

Share: 

 

This Question has 10 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Save a single sheet as a separate file Or get search suggestion and latest updates.


Tagged: