[COLOR=#ff0000]Dim wb As Workbook[/COLOR]
Dim newBook As Workbook
Set newBook = Workbooks.Add
With newBook
Dim currentName As String
currentName = pvtField.PivotItems(Item).Name
.Worksheets(1).Name = currentName
ws.Range("B2:H200").Copy
Worksheets(currentName).Range("B1").PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
ws.Range("B2:H11").Copy
Worksheets(currentName).Range("B1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ws.Range("B23:H300").Copy
Worksheets(currentName).Range("B22").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Worksheets(currentName).Range("B16:F16").Merge
Worksheets(currentName).Range("B18:F18").Merge
Worksheets(currentName).Range("B21:F21").Merge
Worksheets(currentName).Columns("B:F").AutoFit
Worksheets(currentName).Columns("B").ColumnWidth = 50
Worksheets(currentName).Range("A1").Select
[COLOR=#ff0000]
Set wb = Workbooks.Open(filePath & currentName & ".xlsx")
Worksheets(currentName).Copy after:=wb.Sheets(1)
wb.Save
wb.Close False[/COLOR]
End With
Set newBook = Nothing
Next Item
Application.ScreenUpdating = True