GOT IT :D
Every time a code is ran :
'This clears the content in the selected row from A to M
Application.EnableEvents = False
Range(Cells(Target.Row, 1), Cells(Target.Row, 13)).ClearContents
Rows("5:30").Select
ActiveWorkbook.Worksheets("Pre-Requisition").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Pre-Requisition").Sort.SortFields.Add Key:=Range( _
"A5"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Pre-Requisition").Sort
.SetRange Range("A5:AK30")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Application.EnableEvents = True
End If
End If
End If
End If
End Sub
Bookmarks