Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Function debuging help
In my worksheet when I enter =SumByColor(6,B4:B15) I'm getting
#VALUE! Why?????????? Function SumByColor(CellColor As Range, SumRange As Range) As Long Dim mytestcell As Range Dim iColor As Integer Dim myTotal iColor = CellColor.Interior.ColorIndex For Each mytestcell In SumRange If mytestcell.Interior.ColorIndex = iColor Then myTotal = WorksheetFunction.Sum(mytestcell) + myTotal End If Next mytestcell SumByColor = myTotal End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |