I recorded a macro to copy a sheet and save it as paste special values in a new file, but I am getting an Subscript our to range on the first line. Not sure why.
Sheets("HOLDINGS").Select
ActiveCell.Cells.Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:="P:\test\Holdings.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
Application.WindowState = xlMinimized
Our community of experts have been thoroughly vetted for their expertise and industry experience.