Excel Voting

I would like to create a macro that reads and writes to the legends votes tab.

Voting Tab

1. Populates priorities from legends votes tab one at a time.
2. When user clicks submit vote the record is counted and saved back to the "legends votes tab" under the corresponding row in the votes column as one vote.  The next two records are compared for voting until no more comparisons are left.

Example

Legend Votes Tab lists all priorities.

Every Priority needs to be voted against each priority.

1 vs 2 all the way to 16
2 vs 3 all the way to 16
3 vs 4 all the way to 16
etc..
etc..

At the end I should be able to determine the top priorities based on votes.
Voting.xlsx
MPDenverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Neil FlemingConsultant and developerCommented:
Try the attached file.

All the code is in the module for the "Voting worksheet".

Basically it will restart if you DOUBLE-CLICK the "restart" button.

Otherwise select either left or right box. Cell will light up. Hit "vote" (single click) and the comparison cycles to the next one.

The code makes use of some "named ranges" ("cLeft","cRight","cSubmit", and "cStart". It also uses the "code module" names of the worksheets, which I changed to "wVoting" and "wLegendVotes"

The code assumes there is only ever a maximum of one blank line between legend entries, and stops if it encounters 2 blank rows. So you are not restricted to the 16 possible votes in your sample.

Hope this helps.
Voting.xlsm
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MPDenverAuthor Commented:
This is great thank you could you please add a function to email the results to a person when complete
0
Neil FlemingConsultant and developerCommented:
Glad it works. If you want an email function, however, may I respectfully suggest you ask a second question specifying what you need, rather than tack an entirely different question onto your first one?
0
MPDenverAuthor Commented:
Great Work
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.