LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Custom function not computing (#VALUE!) returned

Function CdlColorCountIf(SearchArea As Range, CdlBgColor As Integer) As Integer

Dim CellCount As Range

Application.Volatile True
For Each CellCount In SearchArea

If CellCount.Interior.ColorIndex = CdlBgColor Then

CdlColorCountIf = CdlColorCountIf + 1

End If
Next CellCount

Calculate


End Function

Thanks. Asheesh
---------------------
what does the code look like?

--

HTH

Bob Phillips

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula returned in vlookup function 87vette New Users to Excel 2 May 21st 10 06:34 PM
Wrong output returned during IF function jb333 Excel Worksheet Functions 3 March 16th 09 04:44 PM
How do I set a minimum value to be returned from IF function KW Excel Discussion (Misc queries) 1 June 27th 07 04:14 PM
Using the returned value of a function adombrowski New Users to Excel 1 December 21st 05 07:01 AM
Preformatted array returned by custom function Asif[_3_] Excel Programming 9 December 4th 03 06:31 AM


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"