I am using Office 360 (or Office 2016 by another name I believe).
I have created a macro with the following code:
Function CheckColor1(range)
If range.Interior.Color = RGB(217, 217, 217) Then
CheckColor1 = Grey
ElseIf range.Interior.Color = RGB(0, 0, 0) Then
CheckColor1 = Black
End If
End Function
I have a cell with grey colored text in cell Z2, of color RGB(217, 217, 217) in fact.
In cell AB2, I have the following formula:
=CheckColor1(Z2)
I press enter, and the formula stays visible, uncalculated it seems.
If I highlight the cell, and press Formulas > Calculate Now, nothing changes.
I have checked to make sure the Macro is specific to the file I am working on.
I have saved the file as an .XLSM, which is a macro-enabled workbook.
Any ideas on how I can get the formula to be calculated?
Thanks.
- - , .
برچسب:
نویسنده: استخدام کار