VBA- if then or something else to fill cells

Ruff0r

New Member
Joined
May 12, 2008
Messages
5
I run a confidence football pool that has over 60 people. I already use vba to add up the correct number of picks and the totals as long as the correct picks are highlighted with yellow fill.

I am looking for a solution to highlighting every single pick by hand. I was thinking of an if then statement so that is GB is highlighted in 1 cell it will highlight all GB's in the entire range and the cell to the right of GB.

the sheet is set up so that the team selection is in a2 and the confidence # is in a3. I would want both cells highlighted yellow if a winning team cell is highlighted.

Any help would be greatly appreciated. If further clarification is needed please let me know.

Thanks
Andy
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top