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: Sage Anderson   on Aug 09

code does not work the way you want.
However, I posted code that does work and so did ohtechie.



The key lines of code are:



strSheetName = ActiveSheet.Range("A1").Value ' get desired sheet  name

Sheets(strSheetName).Copy ' copy  desired sheet into a new
workbook

ActiveWorkbook.SaveAs Filename:=strName ' save  the new workbook

ActiveWorkbook.Close ' close the new workbook



Please try this code. (!)

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: