Can someone please help me understand the problem with this function:
\'the function returns the DISPLAYED color of specified cell
Public Function cellDispla
After checking on msdn, it appears you cannot use .DisplayFormat
in UDF's:
Note that the
DisplayFormat
property does not work in user defined functions. For example, in a worksheet function that returns the interior color of a cell, you use a line similar to:
Range(n).DisplayFormat.Interior.ColorIndex
. When the worksheet function executes, it returns a#VALUE!
error.
http://msdn.microsoft.com/en-us/library/office/ff838814(v=office.15).aspx