Sort a data range by double-clicking header cell" FAQ707-4886. This code by VBAJedi is fantastic and has worked well in all of my other tables.
I want to ignore blank rows when I sort by the No. field as there are no corresponding records in those rows yet.
My worksheet is:
D E F G
No. Name Text Date
(vlookup) (data val list) (data entry) (data entry)
Eg. the table has 30 rows and 20 rows have values. When I double-click on column D header, I get 10 blank rows then the numbers are sorted in order at the bottom half of the table.
I tried to make "dataArea" a dynamic range using offset but couldnt get that to work.
Any ideas on how to get around this?
thanks
I want to ignore blank rows when I sort by the No. field as there are no corresponding records in those rows yet.
My worksheet is:
D E F G
No. Name Text Date
(vlookup) (data val list) (data entry) (data entry)
Eg. the table has 30 rows and 20 rows have values. When I double-click on column D header, I get 10 blank rows then the numbers are sorted in order at the bottom half of the table.
I tried to make "dataArea" a dynamic range using offset but couldnt get that to work.
Any ideas on how to get around this?
thanks