I'm sure this question has been asked and answered before, but I haven't come up with the right search criteria.
I have a database in Excel97:
C/R A B C etc.
1 name11 data11 data12
2 name21 data21 data23
3 name31 data31 data33
etc.
The columns are fixrd, but the rows vary.
I frequently need to sort by column A or B, or AJ. I'd like to use a macro with a variable so I could tell it which column to sort on, either by entering the data (actual range or dynamic range name) or by attaching it to a control.
Can anyone get me started in the right direction, remembering that I don't know VBA?
Thanks,
Cliff
I have a database in Excel97:
C/R A B C etc.
1 name11 data11 data12
2 name21 data21 data23
3 name31 data31 data33
etc.
The columns are fixrd, but the rows vary.
I frequently need to sort by column A or B, or AJ. I'd like to use a macro with a variable so I could tell it which column to sort on, either by entering the data (actual range or dynamic range name) or by attaching it to a control.
Can anyone get me started in the right direction, remembering that I don't know VBA?
Thanks,
Cliff