SaveAs macro in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a method of creating a macro that will initiate the worksheet to
SaveAs, specifically to a different network folder? I have a spreadsheet that
needs printing and saving to particular location, and the contents always
change. I have created the macro to print 2 pages of the worksheet but can't
figure out how to include that SaveAs piece. Many thanks.
 
' create a new workbook with just this sheet
Activesheet.copy
ActiveWorkbook.SaveAs "C:\MyFolder\File1.xls"

You haven't said how you will determine the name of the workbook.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top