View Single Post
  #1   Report Post  
TD
 
Posts: n/a
Default How do I have a macro format cells while recording?

I am attempting to record a macro similar to the one below, however at the
end of the data/sort I want to include cell formatting so that the top three
automatically appear in green, and the fourth automatically appears in red.
Is this possible?

Range("A4:H15").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub