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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,707
Office Version
  1. 2016
Platform
  1. Windows
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.
 

Lincoln

New Member
Joined
May 19, 2015
Messages
2
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
 

Forum statistics

Threads
1,136,434
Messages
5,675,838
Members
419,586
Latest member
RoteichA

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
Top