• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

My Macro needs some tweaking

I am trying to do a date sort for 4 digits that are in A3:E407 and place the ones that are the same digits in H3:L407 along with the #1-#5 and when I run the Macro it gives me all the numbers and then they all disappear just as quickly as I can see them

Can anyone tell me what I need to correct please

Thanks in advance

Code:
 Sub ertert()
    With Range("A5").CurrentRegion
        .Columns(.Columns.Count + 1).FormulaR1C1 = "=RC[-5]&RC[-4]&RC[-3]&RC[-2]"
        With .CurrentRegion
            .Sort Key1:=.Cells(1, .Columns.Count), Order1:=xlAscending
        End With
        .Columns(.Columns.Count + 1).ClearContents
    End With
End Sub [CODE]
 

Attachments

  • Sort pic example.jpg
    Sort pic example.jpg
    263 KB · Views: 6
  • Sort 49.xlsm
    Sort 49.xlsm
    70.9 KB · Views: 2
Back
Top