I have a workbook with 5 tabs. Tabs 1, 2 and 3 are pivot charts that Tabs 4 and 5 pull data from and they are set up like =Sheet1!J17 etc. What I am wanting to do is write a VBA macro that will open up the workbook, copy tabs 4 & 5 but ONLY the formatting and values. I have a macro that will do everything with the exception of only copy the values and formatting. The macro that I have will copy everything, whereas I need one that will only copy the values and formatting so that the links are lost. The code below is what I have that will copy the data, but every way I try to only copy formats/values errors out (compile error)
[vba]
Public Sub Move_WOrksheets
'Half Works --- Just copies more than just he values
Application.DisplayAlerts = False
Workbooks.Open Filename:="C:\Test_Data\Test.xls"
With Sheets(Array("Test_Sheet_1", "Test_Sheet_2")).Select
ActiveWindow.SelectedSheets.Copy
Application.CutCopyMode = False
ActiveWorkbook.SaveCopyAs Filename:="C:\Test_Reports\" & "Working_" & Format(Date, "mmddyyyy") & ".xls"
End With
Application.Quit
End Sub
[/vba]