I have long enjoyed this great site and this is my first post.
How would I go about writing VBA to select the Primary Sort Column conditionally based on values outside of the data that is selected for sorting? Something like:
IF(AND(Z1>=AA1,Z1>=AB1)), Primary Sort Key = Col C,
Else...