I currently have an Excel macro that copies a whole sheet from a workbook into a new workbook, but pastes the values only, and then formats them to fit, ready for e-mailing:
Worksheets("Sheet1".Copy
z = ActiveSheet.Name
ActiveSheet.Range("A1:K250".Copy
ActiveSheet.Range("A1:K250".PasteSpecial Paste:=xlValues
ActiveWindow.Zoom = 100
Range("A1:K250".Select
Selection.Columns.AutoFit
Range("A1".Select
I now have more sheets, in exactly the same format but with different values, in the original workbook and want to copy them as well.
Is it possible to amend this to copy more than one sheet to the new workbook, but keeping them as separate sheets, and only copying the values.
Cheers
Gsx600f
Worksheets("Sheet1".Copy
z = ActiveSheet.Name
ActiveSheet.Range("A1:K250".Copy
ActiveSheet.Range("A1:K250".PasteSpecial Paste:=xlValues
ActiveWindow.Zoom = 100
Range("A1:K250".Select
Selection.Columns.AutoFit
Range("A1".Select
I now have more sheets, in exactly the same format but with different values, in the original workbook and want to copy them as well.
Is it possible to amend this to copy more than one sheet to the new workbook, but keeping them as separate sheets, and only copying the values.
Cheers
Gsx600f