Private Sub ManipulateData()
Application.ScreenUpdating = False
With Sheets("ScratchPad")
.Cells.UnMerge
[COLOR=#008000]'Delete Unwanted Rows and Columns[/COLOR]
.rows("7:8").Delete
.rows("1:5").Delete
.Columns("F:I").Delete
.Columns("L").Delete
.Columns("O").Delete
[COLOR=#008000]'Remove Rows with Unwanted Data From Column G[/COLOR]
.Columns(7).Replace "1P*A", ""
.Columns(7).Replace "1STG*", ""
.Columns(7).Replace "1DOOR*", ""
.Columns(7).Replace "VSL*", ""
[COLOR=#ff0000].Columns(7).SpecialCells(4).EntireRow.Delete[/COLOR]
[COLOR=#008000] 'Remove Rows with Unwanted Data From Column I[/COLOR]
.Columns(9).Replace "1P*A", ""
.Columns(9).Replace "1STG*", ""
.Columns(9).Replace "1DOOR*", ""
.Columns(9).Replace "VSL*", ""
[COLOR=#ff0000].Columns(9).SpecialCells(4).EntireRow.Delete[/COLOR]
[COLOR=#008000]'Remove Rows with Unwanted Data From Column C
'Remove Repack Personel[/COLOR]
.Columns(3).Replace "GANYAJI", ""
.Columns(3).Replace "ANDERKA", ""
.Columns(3).Replace "DORMADW", ""
.Columns(3).Replace "BARNENA", ""
.Columns(3).Replace "LONGMIC", ""
.Columns(3).Replace "KEESLJO", ""
.Columns(3).Replace "FAITAPA", ""
[COLOR=#008000] ' Remove Inventory Personel[/COLOR]
.Columns(3).Replace "MORELJO", ""
.Columns(3).Replace "MORROCO", ""
.Columns(3).Replace "PITTMBR", ""
[COLOR=#008000] ' Remove Warehouse Supervisors[/COLOR]
.Columns(3).Replace "POINDRO", ""
.Columns(3).Replace "CARNECU", ""
.Columns(3).Replace "MOOREDO", ""
[COLOR=#ff0000].Columns(3).SpecialCells(12).EntireRow.Delete[/COLOR]
'reset the usedrange
.UsedRange
' apply some formatting
With .UsedRange.Cells
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.ReadingOrder = xlContext
.Columns.AutoFit
.EntireRow.AutoFit
End With
End With
' move this data to the Consolidations.Xlsm sheet
Call MoveToIPMVTool
Application.ScreenUpdating = True
End Sub