MrMajik
IS-IT--Management
- Apr 2, 2002
- 267
I have a spreadsheet that I added a command button to. When you click the button I want the VB code to select two columns wide and ten rows deep and then sort them. So far pretty easy stuff...
Now comes the tricky part. How do I get the code so it is dynamic to the cursor location? For example, my spreadsheet tracks golf scores for ten golfers. There are four outings per month. I want to be able to select the first cell that has data for that golf outing and click the button and have it sort the ten players by best score to the poorest score.
Because I do not know exactly how many outings will happen each summer I only want one button for all of this.
Any suggestions?
Thank you.
Now comes the tricky part. How do I get the code so it is dynamic to the cursor location? For example, my spreadsheet tracks golf scores for ten golfers. There are four outings per month. I want to be able to select the first cell that has data for that golf outing and click the button and have it sort the ten players by best score to the poorest score.
Because I do not know exactly how many outings will happen each summer I only want one button for all of this.
Any suggestions?
Thank you.