albert5445
New Member
- Joined
- Mar 25, 2011
- Messages
- 6
Hello,
I've been trawling forums and Microsoft's site for a while but still can't wrap my head around creating a usable Auto Sort Macro. Any help would be much appreciated!
For whatever reason, I cannot attach the document so here is a simplified version of my spreadsheet in Text format: (Column C has this formula: =IF((B2<=25),"Yes","No"))
Column A | Column B | Column C
Ticker ||| Price |||||| Criteria
A ||||||| 24.00 ||||| Yes
AAPL ||| 26.00 |||||| No
ABC ||| 28.00 |||||| No
ABT ||| 22.00 ||||||| Yes
On a daily basis, the price (column B) will change, which will affect the Criteria column. I would like to be able to create something within VBA that will auto sort by Column C (a descending sort so all the Yes's are on top).
Seems pretty basic but my attempts thus far have been unsuccessful so hopefully I can get some pointers in the right direction.
Thanks!
I've been trawling forums and Microsoft's site for a while but still can't wrap my head around creating a usable Auto Sort Macro. Any help would be much appreciated!
For whatever reason, I cannot attach the document so here is a simplified version of my spreadsheet in Text format: (Column C has this formula: =IF((B2<=25),"Yes","No"))
Column A | Column B | Column C
Ticker ||| Price |||||| Criteria
A ||||||| 24.00 ||||| Yes
AAPL ||| 26.00 |||||| No
ABC ||| 28.00 |||||| No
ABT ||| 22.00 ||||||| Yes
On a daily basis, the price (column B) will change, which will affect the Criteria column. I would like to be able to create something within VBA that will auto sort by Column C (a descending sort so all the Yes's are on top).
Seems pretty basic but my attempts thus far have been unsuccessful so hopefully I can get some pointers in the right direction.
Thanks!