[FONT=lucida console][COLOR=Royalblue]Sub[/COLOR] a1109941e()
[COLOR=Royalblue]Dim[/COLOR] i [COLOR=Royalblue]As[/COLOR] [COLOR=Royalblue]Long[/COLOR], n [COLOR=Royalblue]As[/COLOR] [COLOR=Royalblue]Long[/COLOR]
[COLOR=Royalblue]Dim[/COLOR] va, fm
Sheets([COLOR=brown]"Make Ready Board"[/COLOR]).Activate
n = Cells(Rows.Count, [COLOR=brown]"A"[/COLOR]).[COLOR=Royalblue]End[/COLOR](xlUp).Row
[COLOR=Royalblue]With[/COLOR] Range([COLOR=brown]"A1:F"[/COLOR] & n)
.Sort Key1:=[A1], Order1:=xlAscending, Header:=xlYes
va = .Value
[COLOR=Royalblue]For[/COLOR] i = [COLOR=crimson]2[/COLOR] [COLOR=Royalblue]To[/COLOR] n
[COLOR=Royalblue]If[/COLOR] [COLOR=Royalblue]CStr[/COLOR](Left(va(i, [COLOR=crimson]1[/COLOR]), [COLOR=crimson]2[/COLOR])) >= [COLOR=brown]"33"[/COLOR] [COLOR=Royalblue]Then[/COLOR] [COLOR=Royalblue]Exit[/COLOR] [COLOR=Royalblue]For[/COLOR]
[COLOR=Royalblue]Next[/COLOR]
[COLOR=Royalblue]If[/COLOR] i > [COLOR=crimson]2[/COLOR] [COLOR=Royalblue]Then[/COLOR]
Rows([COLOR=brown]"2:"[/COLOR] & i - [COLOR=crimson]1[/COLOR]).Delete
[COLOR=Royalblue]Else[/COLOR]
MsgBox [COLOR=brown]"Can't find Unit with number below 33xx"[/COLOR]
[COLOR=Royalblue]End[/COLOR] [COLOR=Royalblue]If[/COLOR]
.Sort Key1:=[E1], Order1:=xlAscending, Header:=xlYes
fm = Application.Match([COLOR=Royalblue]CLng[/COLOR]([COLOR=Royalblue]CDate[/COLOR]([COLOR=Royalblue]Date[/COLOR])), Range([COLOR=brown]"E1:E"[/COLOR] & n), [COLOR=crimson]0[/COLOR])
[COLOR=Royalblue]If[/COLOR] IsNumeric(fm) [COLOR=Royalblue]Then[/COLOR]
[COLOR=Royalblue]If[/COLOR] fm > [COLOR=crimson]2[/COLOR] [COLOR=Royalblue]Then[/COLOR] Rows([COLOR=brown]"2:"[/COLOR] & fm - [COLOR=crimson]1[/COLOR]).Delete
[COLOR=Royalblue]Else[/COLOR]
fm = Application.Match([COLOR=Royalblue]CLng[/COLOR]([COLOR=Royalblue]CDate[/COLOR]([COLOR=Royalblue]Date[/COLOR])), Range([COLOR=brown]"E1:E"[/COLOR] & n), [COLOR=crimson]1[/COLOR])
[COLOR=Royalblue]If[/COLOR] IsNumeric(fm) [COLOR=Royalblue]Then[/COLOR] Rows([COLOR=brown]"2:"[/COLOR] & fm).Delete
[COLOR=Royalblue]End[/COLOR] [COLOR=Royalblue]If[/COLOR]
[COLOR=Royalblue]End[/COLOR] [COLOR=Royalblue]With[/COLOR]
[COLOR=Royalblue]End[/COLOR] [COLOR=Royalblue]Sub[/COLOR][/FONT]