首页 文章

Excel公式不会自动更新

提问于
浏览
0

我已经创建了一个简单的excel公式来知道单元格A1的字体颜色是什么

Function GetFontColorIndex(elrango As Range) As Integer
        Application.Volatile
       GetFontColorIndex = elrango.Cells(1, 1).Font.ColorIndex
End Function

excel-2010
选中文件>选项>公式>工作簿计算>自动

在单元格 A1 中我有一个数字,在单元格中 A3 我有
=GetFontColorIndex(A1)

但是当我更改单元格 A1 的字体时,公式不会自动更新单元格 A3 . 我必须单击 shift+F9 然后它才有效 .

知道为什么不自动显示字体数量?

1 回答

  • 0

    正如simoco所提到的那样 .

    如果您在 Sheet1 中使用'udf',则在与该表关联的模块中添加以下内容:

    enter image description here

    如果您只是更改颜色,公式不会更新,但只要您按Enter键选择其更新的工作表中的另一个单元格

相关问题