need sumbycolor function for Excel 2007

Lincoln

New Member
Joined
May 19, 2015
Messages
2
I want to add cells that have the same font color, or if that's not possible, the same background color. I found a few functions which claim to do this. I copied/pasted into VBA, but keep getting #NAME? errors.

This is the first time I have ever done Alt/F11 so I might be doing something wrong? I have saved as a macro-enabled worksheet (.xlsm)

Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Forum, what have you tried? Can you show the code and also copy some data into your thread, it will help get a response that will provide a solution for you.
 
Upvote 0
Thanks for your reply Trevor, I have solved the issue now. I can't believe how simple it was. I just had to 'enable macros'. There was a security warning on the tool bar that I hadn't seen because I was so focused on the problem, but when I finally saw the warning, I enabled macros and it all works now. Thanks
 
Upvote 0

Forum statistics

Threads
1,214,863
Messages
6,121,978
Members
449,058
Latest member
oculus

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