【发布时间】:2020-08-10 05:09:07
【问题描述】:
我是 Excel VBA 新手。
如何通过自定义函数改变指定单元格的值?这段代码有什么问题:
Function Test(ByVal ACell As Range) As String
ACell.Value = "This text is set by a function"
Test := "Result"
End Function
我的愿望是……当我在单元格E1中输入=Test(E6)时,Excel会在E6中显示指定的文本。
【问题讨论】: