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: Tyler Thompson   on Aug 09

i had some time so i made this.. quick simple... let me know if you need more
help

Sub copynewbook()
'
' copynewbook Macro
'
'
Dim wbName As String
Dim wsName As String
Dim strSheet As String

wbName = ThisWorkbook.Name
wsName = "Master"
strSheet = Workbooks(wbName).Worksheets(wsName).Range("A1").Value

Workbooks(wbName).Worksheets(strSheet).Activate
Workbooks(wbName).Worksheets(strSheet).Select
Workbooks(wbName).Worksheets(strSheet).Copy

ActiveWorkbook.SaveAs strSheet & ".xls"
Workbooks(strSheet & ".xls").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: