Hi there,
I want to copy my "Master" sheet to new wb and rename it as "Simulation1", "Simulation2" and so on. But here I only need to copy table format, value format and without formula.
Below is the code from Simon referring to thread http://www.vbaexpress.com/forum/show...t+to+new+sheet
But this code give me error '1004'. Hope some one could help me on this.
PHP Code:
Sub CopySheetAll()
Dim Master As String
MyBook = ActiveWorkbook.Name
ActiveSheet.Copy
ActiveSheet.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.SaveAs ("Simulation" & ".xls")
Workbooks(Master).Activate
End Sub