I have a spreadsheet with multiple worksheets (17 in total.) One worksheet is serving as the database, the other worksheets are linked and pulling information from the "database" worksheet.
I need to make a copy of 12 of these worksheets and save them as filename=worksheetname with only values displayed into the directory G:\eaststaff\spring Conference Schedule 2008. How can I specify only the selected 12 worksheets to be copied/saved? Is the below code a start in the right direction? Thanks!
I need to make a copy of 12 of these worksheets and save them as filename=worksheetname with only values displayed into the directory G:\eaststaff\spring Conference Schedule 2008. How can I specify only the selected 12 worksheets to be copied/saved? Is the below code a start in the right direction? Thanks!
Code:
For Each ws In Active.Worksheets
fname = ws.Name & ".xls"
ws.Activate
ws.Cells.Copy
ws.[A1].PasteSpecial xlValues
Active.Worksheets.SaveAs Filename:=G: & "\" & EastStaff & "\" & Spring Conference Schedule 2008 & fname, FileFormat:= _
xls, CreateBackup:=False
Next ws