VBA Macro: sorting in Column A

  • Hi ALL,
    I want to write a macro that can sort the column A in whatever worksheets. I try to record the sorting and edit the code. But the problem I face is I don't know what to put inside the ListObjects(), any idea?


  • Re: VBA Macro: sorting in Column A


    Hi Smallman,


    Actually I want to keep Row 1 as the header row, i.e. the first row (A1) does not need to be sorted. How to cater this? Thanks!

  • Re: VBA Macro: sorting in Column A


    as I found that if the worksheet only have 2 rows (e.g. A1=7, A2=2), the sorting will apply to the first row also ...

  • Re: VBA Macro: sorting in Column A


    Hi Smallman,
    Actually I mean I will sort Column A but other columns' values should also be sorted accordingly. Any idea?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!